From da2b29cdc67d1a7dc7ae1031054ee9cd2a5ea090 Mon Sep 17 00:00:00 2001 From: Adam Bradley Date: Thu, 24 Sep 2015 20:22:42 -0500 Subject: [PATCH] chore(): make a few things private --- ionic/components/nav/nav-controller.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/ionic/components/nav/nav-controller.ts b/ionic/components/nav/nav-controller.ts index af6a879df2..83a88b6a3a 100644 --- a/ionic/components/nav/nav-controller.ts +++ b/ionic/components/nav/nav-controller.ts @@ -38,8 +38,8 @@ export class NavController extends Ion { this.panes = new PaneController(this); this._sbTrans = null; - this.sbEnabled = config.setting('swipeBackEnabled') || false; - this.sbThreshold = config.setting('swipeBackThreshold') || 40 + this._sbEnabled = config.setting('swipeBackEnabled') || false; + this._sbThreshold = config.setting('swipeBackThreshold') || 40; this.id = ++ctrlIds; this._ids = -1; @@ -474,7 +474,7 @@ export class NavController extends Ion { let opts = { edge: 'left', - threshold: this.sbThreshold + threshold: this._sbThreshold }; this.sbGesture = new SwipeBackGesture(this.getNativeElement(), opts, this); console.debug('SwipeBackGesture listen'); @@ -497,9 +497,9 @@ export class NavController extends Ion { */ isSwipeBackEnabled(val) { if (arguments.length) { - this.sbEnabled = !!val; + this._sbEnabled = !!val; } - return this.sbEnabled; + return this._sbEnabled; } /** @@ -510,7 +510,7 @@ export class NavController extends Ion { * @returns {boolean} */ canSwipeBack() { - return (this.sbEnabled && this.canGoBack()); + return (this._sbEnabled && this.canGoBack()); } /**