From ed6d0fa13ba67586ba6f45b40c4ce650abb92ee3 Mon Sep 17 00:00:00 2001 From: Brandy Carney Date: Tue, 21 Jun 2016 14:11:38 -0400 Subject: [PATCH] fix(tabs): reference parent instead of parentTabs --- src/components/tabs/tab.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/tabs/tab.ts b/src/components/tabs/tab.ts index 4f0f8db1cb..94e5e23995 100644 --- a/src/components/tabs/tab.ts +++ b/src/components/tabs/tab.ts @@ -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;