Check for arguments object edge case, and remove instanceof
This commit is contained in:
parent
f3018776b8
commit
c56f75a4c3
2 changed files with 13 additions and 3 deletions
|
|
@ -784,6 +784,15 @@ function testMithril(mock) {
|
|||
m.render(root, [m("div.green", [m("div")]), m("div.blue")])
|
||||
return root.childNodes.length == 2
|
||||
})
|
||||
test(function() {
|
||||
var root = mock.document.createElement("div")
|
||||
m.render(root, m("ul", [m("li")]))
|
||||
var change = function() {
|
||||
m.render(root, m("ul", arguments))
|
||||
}
|
||||
change(m("b"));
|
||||
return root.childNodes[0].childNodes[0].nodeName == "B"
|
||||
})
|
||||
//end m.render
|
||||
|
||||
//m.redraw
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue