Skip to content

Commit d2821b0

Browse files
committed
only call cleanup when not deferring
1 parent 8def6c7 commit d2821b0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/instance/lifecycle.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,9 @@ exports._bindDir = function (descriptor, node, host, scope, frag) {
123123

124124
exports._destroy = function (remove, deferCleanup) {
125125
if (this._isBeingDestroyed) {
126-
this._cleanup()
126+
if (!deferCleanup) {
127+
this._cleanup()
128+
}
127129
return
128130
}
129131
this._callHook('beforeDestroy')

0 commit comments

Comments
 (0)