update docs re:onbeforeremove and clean up

This commit is contained in:
Leo Horie 2016-12-26 12:28:13 -05:00
parent 78b9a082ac
commit bedcd8bdbf
5 changed files with 14 additions and 18 deletions

View file

@ -110,8 +110,8 @@ m("div", {
onbeforeupdate : function(vnode, old) { /*...*/ },
// Called after the node is updated
onupdate : function(vnode) { /*...*/ },
// Called before the node is removed, call done() when ready for the node to be removed from the DOM
onbeforeremove : function(vnode, done) { /*...*/ },
// Called before the node is removed, return a Promise that resolves when ready for the node to be removed from the DOM
onbeforeremove : function(vnode) { /*...*/ },
// Called before the node is removed, but after onbeforeremove calls done()
onremove : function(vnode) { /*...*/ }
});