fix(): disable preloadTabs for now

This commit is contained in:
Adam Bradley
2015-10-16 13:49:52 -05:00
parent be6cee3f84
commit 387ec40f23

View File

@ -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;