Bundled output for commit 157fb7d446 [skip ci]

This commit is contained in:
Gandalf-the-Bot 2017-07-31 10:15:31 +00:00
parent 157fb7d446
commit 6f77450d03
2 changed files with 5 additions and 4 deletions

View file

@ -806,9 +806,10 @@ var coreRenderer = function($window) {
}
function onremove(vnode) {
if (vnode.attrs && typeof vnode.attrs.onremove === "function") vnode.attrs.onremove.call(vnode.state, vnode)
if (typeof vnode.tag !== "string" && typeof vnode._state.onremove === "function") vnode._state.onremove.call(vnode.state, vnode)
if (vnode.instance != null) onremove(vnode.instance)
else {
if (typeof vnode.tag !== "string") {
if (typeof vnode._state.onremove === "function") vnode._state.onremove.call(vnode.state, vnode)
if (vnode.instance != null) onremove(vnode.instance)
} else {
var children = vnode.children
if (Array.isArray(children)) {
for (var i = 0; i < children.length; i++) {