fix(tabs): reference parent instead of parentTabs

This commit is contained in:
Brandy Carney
2016-06-21 14:11:38 -04:00
parent 603000fa72
commit ed6d0fa13b

View File

@ -233,8 +233,8 @@ 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;