mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 03:32:21 +08:00
fix(): disable preloadTabs for now
This commit is contained in:
@ -94,19 +94,18 @@ export class Tab extends NavController {
|
|||||||
this.tabs.select(this);
|
this.tabs.select(this);
|
||||||
|
|
||||||
} else if (this.tabs.preloadTabs) {
|
} else if (this.tabs.preloadTabs) {
|
||||||
setTimeout(() => {
|
// setTimeout(() => {
|
||||||
this.load(() => {
|
// this.load(() => {
|
||||||
console.debug('preloaded tab', this.getIndex());
|
// console.debug('preloaded tab', this.getIndex());
|
||||||
});
|
// });
|
||||||
}, 500 * this.getIndex());
|
// }, 500 * this.getIndex());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
load(callback) {
|
load(callback) {
|
||||||
if (!this._loaded && this.root) {
|
if (!this._loaded && this.root) {
|
||||||
let opts = {
|
let opts = {
|
||||||
animate: false,
|
animate: false
|
||||||
navbar: false
|
|
||||||
};
|
};
|
||||||
this.push(this.root, null, opts).then(callback);
|
this.push(this.root, null, opts).then(callback);
|
||||||
this._loaded = true;
|
this._loaded = true;
|
||||||
|
Reference in New Issue
Block a user