File tree Expand file tree Collapse file tree 1 file changed +7
-9
lines changed
Expand file tree Collapse file tree 1 file changed +7
-9
lines changed Original file line number Diff line number Diff line change @@ -110,14 +110,12 @@ module.exports = {
110110
111111 resolveCtor : function ( id , cb ) {
112112 var self = this
113- var pendingCb = this . _pendingCb = function ( ctor ) {
114- if ( ! pendingCb . invalidated ) {
115- self . ctorId = id
116- self . Ctor = ctor
117- cb ( )
118- }
119- }
120- this . vm . _resolveComponent ( id , pendingCb )
113+ this . _pendingCb = _ . cancellable ( function ( ctor ) {
114+ self . ctorId = id
115+ self . Ctor = ctor
116+ cb ( )
117+ } )
118+ this . vm . _resolveComponent ( id , this . _pendingCb )
121119 } ,
122120
123121 /**
@@ -128,7 +126,7 @@ module.exports = {
128126
129127 invalidatePending : function ( ) {
130128 if ( this . _pendingCb ) {
131- this . _pendingCb . invalidated = true
129+ this . _pendingCb . cancel ( )
132130 this . _pendingCb = null
133131 }
134132 } ,
You can’t perform that action at this time.
0 commit comments