don't copy state anymore

This commit is contained in:
Leo Horie 2016-07-08 00:40:52 -04:00
parent 40ff3c89b5
commit cece44d4ac
4 changed files with 8 additions and 42 deletions

View file

@ -576,22 +576,4 @@ o.spec("component", function() {
o(vnode.dom).notEquals(updated.dom)
})
})
o.spec("state", function() {
o("deep copies state", function() {
var called = 0
var component = {
data: [{a: 1}],
oninit: init,
view: function() {
return ""
}
}
render(root, [{tag: component}])
function init(vnode) {
o(vnode.state.data).deepEquals([{a: 1}])
}
})
})
})