Evan You 10 лет назад
Родитель
Сommit
29eba77f29
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/transition/transition.js

+ 1 - 1
src/transition/transition.js

@@ -139,7 +139,7 @@ p.leave = function (op, cb) {
   this.cb = cb
   addClass(this.el, this.leaveClass)
   this.callHookWithCb('leave')
-  this.cancel = this.hooks && this.hooks.enterCancelled
+  this.cancel = this.hooks && this.hooks.leaveCancelled
   // only need to do leaveNextTick if there's no explicit
   // js callback
   if (!this.pendingJsCb) {