Sfoglia il codice sorgente

avoid duplicate $destroy during destroy

Evan You 11 anni fa
parent
commit
447fa2d110
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      src/api/lifecycle.js

+ 1 - 1
src/api/lifecycle.js

@@ -59,7 +59,7 @@ function ready () {
  */
 
 exports.$destroy = function (remove) {
-  if (this._isDestroyed) {
+  if (this._isBeingDestroyed) {
     return
   }
   this._callHook('beforeDestroy')