Skip to content

Commit

Permalink
fix(portal): init currentTarget
Browse files Browse the repository at this point in the history
  • Loading branch information
bigopon committed Jan 19, 2018
1 parent 2f72e12 commit 35735ce
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions dist/amd/portal.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ define(["require", "exports", "aurelia-templating", "aurelia-pal"], function (re
this.originalViewslot = originalViewslot;
this.strict = false;
this.initialRender = false;
this.currentTarget = unset;
}
Portal_1 = Portal;
Portal.getTarget = function (target, context) {
Expand Down
1 change: 1 addition & 0 deletions dist/commonjs/portal.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ var Portal = /** @class */ (function () {
this.originalViewslot = originalViewslot;
this.strict = false;
this.initialRender = false;
this.currentTarget = unset;
}
Portal_1 = Portal;
Portal.getTarget = function (target, context) {
Expand Down
1 change: 1 addition & 0 deletions dist/es2015/portal.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ var Portal = /** @class */ (function () {
this.originalViewslot = originalViewslot;
this.strict = false;
this.initialRender = false;
this.currentTarget = unset;
}
Portal_1 = Portal;
Portal.getTarget = function (target, context) {
Expand Down
1 change: 1 addition & 0 deletions dist/native-modules/portal.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ var Portal = /** @class */ (function () {
this.originalViewslot = originalViewslot;
this.strict = false;
this.initialRender = false;
this.currentTarget = unset;
}
Portal_1 = Portal;
Portal.getTarget = function (target, context) {
Expand Down
1 change: 1 addition & 0 deletions dist/system/portal.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ System.register(["aurelia-templating", "aurelia-pal"], function (exports_1, cont
this.originalViewslot = originalViewslot;
this.strict = false;
this.initialRender = false;
this.currentTarget = unset;
}
Portal_1 = Portal;
Portal.getTarget = function (target, context) {
Expand Down
2 changes: 1 addition & 1 deletion src/portal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export class Portal {
*/
@bindable() public callbackContext: any

private currentTarget: typeof unset | Element | null
private currentTarget: typeof unset | Element | null = unset;
private isAttached: boolean;
private viewSlot: ViewSlot | null;
private view: View;
Expand Down

0 comments on commit 35735ce

Please sign in to comment.