Skip to content

Commit 0462a17

Browse files
committed
destroy waiting-for instance in all cases
1 parent bbd78c1 commit 0462a17

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/directives/component.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -117,10 +117,6 @@ module.exports = {
117117
} else {
118118
this.resolveComponent(value, _.bind(function () {
119119
this.unbuild(true)
120-
if (this.waitingFor) {
121-
this.waitingFor.$destroy()
122-
this.waitingFor = null
123-
}
124120
var options
125121
var self = this
126122
var waitFor = this.waitForEvent
@@ -229,6 +225,10 @@ module.exports = {
229225
*/
230226

231227
unbuild: function (defer) {
228+
if (this.waitingFor) {
229+
this.waitingFor.$destroy()
230+
this.waitingFor = null
231+
}
232232
var child = this.childVM
233233
if (!child || this.keepAlive) {
234234
return

0 commit comments

Comments
 (0)