mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 20:33:32 +08:00
chore: removed deprecated APIs
This commit is contained in:

committed by
Adam Bradley

parent
a06bd69926
commit
35568ba85f
@ -883,6 +883,9 @@ export class NavControllerBase extends Ion implements NavController {
|
||||
}
|
||||
|
||||
isTransitioning(): boolean {
|
||||
if (this._trnsTm === 0) {
|
||||
return false;
|
||||
}
|
||||
// using a timestamp instead of boolean incase something goes wrong
|
||||
return (this._trnsTm > Date.now());
|
||||
}
|
||||
@ -954,28 +957,6 @@ export class NavControllerBase extends Ion implements NavController {
|
||||
this._viewport = val;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @private
|
||||
* DEPRECATED: Please use app.getRootNav() instead
|
||||
*/
|
||||
get rootNav(): NavController {
|
||||
// deprecated 07-14-2016 beta.11
|
||||
console.warn('nav.rootNav() has been deprecated, please use app.getRootNav() instead');
|
||||
return this._app.getRootNav();
|
||||
}
|
||||
|
||||
/**
|
||||
* @private
|
||||
* DEPRECATED: Please use inject the overlays controller and use the present method on the instance instead.
|
||||
*/
|
||||
present(): Promise<any> {
|
||||
// deprecated warning: added beta.11 2016-06-27
|
||||
console.warn('nav.present() has been deprecated.\n' +
|
||||
'Please inject the overlay\'s controller and use the present method on the instance instead.');
|
||||
return Promise.resolve();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
let ctrlIds = -1;
|
||||
|
Reference in New Issue
Block a user