mirror of
https://github.com/vuejs/vue.git
synced 2024-11-22 04:39:46 +00:00
add unbind hook for runtime directives
This commit is contained in:
parent
0b5e962943
commit
beb519cb4f
@ -4,6 +4,9 @@ export default {
|
||||
},
|
||||
update: function (oldVnode, vnode) {
|
||||
applyDirectives(oldVnode, vnode, 'update', true)
|
||||
},
|
||||
destroy: function (oldVnode, vnode) {
|
||||
applyDirectives(oldVnode, vnode, 'unbind')
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user