fix(nav): prevents to remove all views in the nav stack

fixes #9140
This commit is contained in:
Manu Mtz.-Almeida
2016-11-28 01:38:21 +01:00
parent 76df8412b4
commit 16bfb49395
3 changed files with 4 additions and 2 deletions

View File

@ -172,7 +172,7 @@ export class ViewController {
* @returns {any} data Returns the data passed in, if any.
*
*/
dismiss(data?: any, role?: any, navOptions: NavOptions = {}) {
dismiss(data?: any, role?: any, navOptions: NavOptions = {}): Promise<any> {
if (!this._nav) {
return Promise.resolve(false);
}