select tabs update

This commit is contained in:
Adam Bradley
2015-06-08 11:16:49 -05:00
parent 87c81a7e19
commit 219352c05b
4 changed files with 32 additions and 28 deletions

View File

@ -190,24 +190,6 @@ export class NavBase {
return promise;
}
select(enteringItem, opts = {}) {
if (!enteringItem || !enteringItem.instance || this.isTransitioning()) {
return;
}
enteringItem.instance.loadInitial();
opts.animation = 'none';
let leavingItem = this.getActive() || new NavItem();
leavingItem.shouldDestroy = false;
leavingItem.shouldCache = true;
leavingItem.willCache();
this.transition(enteringItem, leavingItem, opts, () => {
});
}
transition(enteringItem, leavingItem, opts, callback) {
if (!enteringItem || enteringItem === leavingItem) {
return callback();