Merge pull request #1187 from pygy/cleanup

Remove a few crumbs I left behind
This commit is contained in:
Leo Horie 2016-07-29 14:34:24 -04:00 committed by GitHub
commit 5d95022a8f

View file

@ -151,7 +151,6 @@ o.spec("onbeforeremove", function() {
})
}
})
o("does not set onbeforeremove as an event handler", function() {
var remove = o.spy()
var vnode = {tag: "div", attrs: {onbeforeremove: remove}, children: []}
@ -161,7 +160,6 @@ o.spec("onbeforeremove", function() {
o(vnode.dom.onbeforeremove).equals(undefined)
o(vnode.dom.attributes["onbeforeremove"]).equals(undefined)
})
o("does not recycle when there's an onbeforeremove", function() {
var remove = function(vnode, done) {done()}
var vnode = {tag: "div", key: 1, attrs: {onbeforeremove: remove}}
@ -173,8 +171,4 @@ o.spec("onbeforeremove", function() {
o(vnode.dom).notEquals(updated.dom)
})
o("sets the onbeforeremove context to vnode.state", function(){
var handler = o.spy()
})
})