fix(popup): fixed subtitle passing between popups

this._defaults was getting all of opts properties added to it every
time a popup was opened, switched it so this_defaults wouldn’t be
modified and opts would get its properties. Closes #342
This commit is contained in:
Brandy Carney
2015-10-29 13:02:03 -04:00
parent 74a374c8a6
commit 7bd2ebe027

View File

@@ -82,7 +82,7 @@ export class Popup {
opts.promiseResolve = resolve;
opts.promiseReject = reject;
return this.ctrl.open(OVERLAY_TYPE, PopupCmp, util.extend(this._defaults, opts));
return this.ctrl.open(OVERLAY_TYPE, PopupCmp, util.extend(opts, this._defaults));
});
}
@@ -129,7 +129,6 @@ export class Popup {
button
]
}, opts);
return this.open(opts);
}
@@ -245,7 +244,6 @@ export class Popup {
cancelButton, okButton
]
}, opts);
return this.open(opts);
}