Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
: null).then(function () {
if (target === _this.currentTarget || oldTarget === unset) {
var viewSlot = _this.viewSlot = new aurelia_templating_1.ViewSlot(target, true);
viewSlot.attached();
viewSlot.add(view);
_this.removed = false;
}
return Promise.resolve().then(function () {
typeof _this.activated === 'function'
? _this.activated.call(_this.callbackContext, target, view)
: null;
});
});
}
: null).then(function () {
if (target === _this.currentTarget || oldTarget === unset) {
var viewSlot = _this.viewSlot = new ViewSlot(target, true);
viewSlot.attached();
viewSlot.add(view);
_this.removed = false;
}
return Promise.resolve().then(function () {
typeof _this.activated === 'function'
? _this.activated.call(_this.callbackContext, target, view)
: null;
});
});
}
: null).then(() => {
if (target === this.currentTarget || oldTarget === unset) {
const viewSlot = this.viewSlot = new ViewSlot(target, true);
viewSlot.attached();
viewSlot.add(view);
this.removed = false;
}
return Promise.resolve().then(() => {
typeof this.activated === 'function'
? this.activated.call(this.callbackContext, target, view)
: null;
});
});
}
: null).then(function () {
if (target === _this.currentTarget || oldTarget === unset) {
var viewSlot = _this.viewSlot = new ViewSlot(target, true);
viewSlot.attached();
viewSlot.add(view);
_this.removed = false;
}
return Promise.resolve().then(function () {
typeof _this.activated === 'function'
? _this.activated.call(_this.callbackContext, target, view)
: null;
});
});
}
: null).then(function () {
if (target === _this.currentTarget || oldTarget === unset) {
var viewSlot = _this.viewSlot = new aureliaTemplating.ViewSlot(target, true);
viewSlot.attached();
viewSlot.add(view);
_this.removed = false;
}
return Promise.resolve().then(function () {
typeof _this.activated === 'function'
? _this.activated.call(_this.callbackContext, target, view)
: null;
});
});
}