We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bbd78c1 commit 0462a17Copy full SHA for 0462a17
src/directives/component.js
@@ -117,10 +117,6 @@ module.exports = {
117
} else {
118
this.resolveComponent(value, _.bind(function () {
119
this.unbuild(true)
120
- if (this.waitingFor) {
121
- this.waitingFor.$destroy()
122
- this.waitingFor = null
123
- }
124
var options
125
var self = this
126
var waitFor = this.waitForEvent
@@ -229,6 +225,10 @@ module.exports = {
229
225
*/
230
226
231
227
unbuild: function (defer) {
228
+ if (this.waitingFor) {
+ this.waitingFor.$destroy()
+ this.waitingFor = null
+ }
232
var child = this.childVM
233
if (!child || this.keepAlive) {
234
return
0 commit comments