fix(alert): return promise from dismiss

This commit is contained in:
Adam Bradley
2016-01-14 11:38:11 -06:00
parent 7eed4c91bf
commit e67c79104f
2 changed files with 4 additions and 4 deletions

View File

@ -197,8 +197,8 @@ class ActionSheetCmp {
} }
} }
dismiss() { dismiss(): Promise<any> {
this._viewCtrl.dismiss(null); return this._viewCtrl.dismiss(null);
} }
onPageLoaded() { onPageLoaded() {

View File

@ -418,8 +418,8 @@ class AlertCmp {
checkedInput.checked = !checkedInput.checked; checkedInput.checked = !checkedInput.checked;
} }
dismiss() { dismiss(): Promise<any> {
this._viewCtrl.dismiss(this.getValues()); return this._viewCtrl.dismiss(this.getValues());
} }
getValues() { getValues() {