You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following code produced a TypeError: Argument 1 of Node.insertBefore is not an object. from line 129 of mithril (running in Firefox). However if you comment out the line inserting m("br") the error goes away (but of course renders with the input boxes on the same line). So it appears that the handling of keyed objects mixed with unkeyed objects is incorrect.
<scriptsrc="mithril-0.1.21/mithril.js"></script><body><divid="testdiv"><script>
var test = {}, p1 = m.prop(''), p2 = m.prop('');
var f = [m("input", {onchange:m.withAttr("value",p2),value:p2(),key:2})];
test.controller = function() {};
test.view = function(c) {returnm("div",f)};
m.module(testdiv, test);
f.unshift(m("br"));
f.unshift(m("input", {onchange:m.withAttr("value",p1),value:p1(),key:1}))
window.setTimeout(function() {m.redraw(true);}, 2000)
</script></body>
The text was updated successfully, but these errors were encountered:
The following code produced a
TypeError: Argument 1 of Node.insertBefore is not an object.
from line 129 of mithril (running in Firefox). However if you comment out the line insertingm("br")
the error goes away (but of course renders with the input boxes on the same line). So it appears that the handling of keyed objects mixed with unkeyed objects is incorrect.The text was updated successfully, but these errors were encountered: