Skip to content

Commit 447fa2d

Browse files
committed
avoid duplicate $destroy during destroy
1 parent 1592a06 commit 447fa2d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/api/lifecycle.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ function ready () {
5959
*/
6060

6161
exports.$destroy = function (remove) {
62-
if (this._isDestroyed) {
62+
if (this._isBeingDestroyed) {
6363
return
6464
}
6565
this._callHook('beforeDestroy')

0 commit comments

Comments
 (0)