Skip to content

Commit

Permalink
fix(tabs): reference parent instead of parentTabs
Browse files Browse the repository at this point in the history
  • Loading branch information
brandyscarney committed Jun 21, 2016
1 parent 603000f commit ed6d0fa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/tabs/tab.ts
Original file line number Diff line number Diff line change
Expand Up @@ -233,9 +233,9 @@ export class Tab extends NavController {

parent.add(this);

if (parentTabs.rootNav) {
this._sbEnabled = parentTabs.rootNav.isSwipeBackEnabled();
}
if (parent.rootNav) {
this._sbEnabled = parent.rootNav.isSwipeBackEnabled();
}

this._panelId = 'tabpanel-' + this.id;
this._btnId = 'tab-' + this.id;
Expand Down

0 comments on commit ed6d0fa

Please sign in to comment.