Check for arguments object edge case, and remove instanceof

This commit is contained in:
Richard Eames 2014-09-18 12:37:22 -06:00
parent f3018776b8
commit c56f75a4c3
2 changed files with 13 additions and 3 deletions

View file

@ -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