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);
} else if (this.tabs.preloadTabs) {
setTimeout(() => {
this.load(() => {
console.debug('preloaded tab', this.getIndex());
});
}, 500 * this.getIndex());
// setTimeout(() => {
// this.load(() => {
// console.debug('preloaded tab', this.getIndex());
// });
// }, 500 * this.getIndex());
}
}
load(callback) {
if (!this._loaded && this.root) {
let opts = {
animate: false,
navbar: false
animate: false
};
this.push(this.root, null, opts).then(callback);
this._loaded = true;