add unbind hook for runtime directives

This commit is contained in:
Evan You 2016-04-13 20:52:47 -04:00
parent 0b5e962943
commit beb519cb4f

View File

@ -4,6 +4,9 @@ export default {
},
update: function (oldVnode, vnode) {
applyDirectives(oldVnode, vnode, 'update', true)
},
destroy: function (oldVnode, vnode) {
applyDirectives(oldVnode, vnode, 'unbind')
}
}