Explorar el Código

avoid duplicate $destroy during destroy

Evan You hace 11 años
padre
commit
447fa2d110
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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')