update docs re:onbeforeremove and clean up
This commit is contained in:
parent
78b9a082ac
commit
bedcd8bdbf
5 changed files with 14 additions and 18 deletions
|
|
@ -370,15 +370,6 @@ module.exports = function($window) {
|
|||
}
|
||||
}
|
||||
}
|
||||
function once(f) {
|
||||
var called = false
|
||||
return function() {
|
||||
if (!called) {
|
||||
called = true
|
||||
f()
|
||||
}
|
||||
}
|
||||
}
|
||||
function removeNode(vnode, context) {
|
||||
var expected = 1, called = 0
|
||||
if (vnode.attrs && vnode.attrs.onbeforeremove) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue