@@ -44,10 +44,10 @@ function($scope, $element, $attrs, $compile, $timeout, $ionicNavBarDelegate, $io
4444
4545
4646 self . createHeaderBar = function ( isActive , navBarClass ) {
47- var containerEle = jqLite ( '<div class="nav-bar-block">' ) ;
47+ var containerEle = jqLite ( '<div class="nav-bar-block">' ) ;
4848 ionic . DomUtil . cachedAttr ( containerEle , 'nav-bar' , isActive ? 'active' : 'cached' ) ;
4949
50- var headerBarEle = jqLite ( '<ion-header-bar>' ) . addClass ( $attrs . class ) ;
50+ var headerBarEle = jqLite ( '<ion-header-bar>' ) . addClass ( $attrs . class ) ;
5151 var titleEle = jqLite ( '<div class="title title-' + $ionicConfig . navBar . alignTitle ( ) + '">' ) ;
5252 var navEle = { } ;
5353 var lastViewBtnsEle = { } ;
@@ -60,7 +60,7 @@ function($scope, $element, $attrs, $compile, $timeout, $ionicNavBarDelegate, $io
6060 // append title in the header, this is the rock to where buttons append
6161 headerBarEle . append ( titleEle ) ;
6262
63- forEach ( BUTTON_TYPES , function ( buttonType ) {
63+ forEach ( BUTTON_TYPES , function ( buttonType ) {
6464 // create default button elements
6565 navEle [ buttonType ] = createNavElement ( buttonType ) ;
6666 // append and position buttons
@@ -69,7 +69,7 @@ function($scope, $element, $attrs, $compile, $timeout, $ionicNavBarDelegate, $io
6969
7070 // compile header and append to the DOM
7171 containerEle . append ( headerBarEle ) ;
72- $element . append ( $compile ( containerEle ) ( $scope . $new ( ) ) ) ;
72+ $element . append ( $compile ( containerEle ) ( $scope . $new ( ) ) ) ;
7373
7474 var headerBarCtrl = headerBarEle . data ( '$ionHeaderBarController' ) ;
7575
@@ -114,7 +114,7 @@ function($scope, $element, $attrs, $compile, $timeout, $ionicNavBarDelegate, $io
114114 return headerBarEle ;
115115 } ,
116116 afterLeave : function ( ) {
117- forEach ( BUTTON_TYPES , function ( buttonType ) {
117+ forEach ( BUTTON_TYPES , function ( buttonType ) {
118118 headerBarInstance . removeButtons ( buttonType ) ;
119119 } ) ;
120120 headerBarCtrl . resetBackButton ( ) ;
@@ -123,7 +123,7 @@ function($scope, $element, $attrs, $compile, $timeout, $ionicNavBarDelegate, $io
123123 return headerBarCtrl ;
124124 } ,
125125 destroy : function ( ) {
126- forEach ( BUTTON_TYPES , function ( buttonType ) {
126+ forEach ( BUTTON_TYPES , function ( buttonType ) {
127127 headerBarInstance . removeButtons ( buttonType ) ;
128128 } ) ;
129129 containerEle . scope ( ) . $destroy ( ) ;
@@ -187,7 +187,7 @@ function($scope, $element, $attrs, $compile, $timeout, $ionicNavBarDelegate, $io
187187
188188
189189 self . navElement = function ( type , html ) {
190- if ( isDefined ( html ) ) {
190+ if ( isDefined ( html ) ) {
191191 navElementHtml [ type ] = html ;
192192 }
193193 return navElementHtml [ type ] ;
@@ -214,7 +214,7 @@ function($scope, $element, $attrs, $compile, $timeout, $ionicNavBarDelegate, $io
214214
215215 // update the buttons, depending if the view has their own or not
216216 if ( viewData . buttons ) {
217- forEach ( BUTTON_TYPES , function ( buttonType ) {
217+ forEach ( BUTTON_TYPES , function ( buttonType ) {
218218 enteringHeaderBar . setButtons ( viewData . buttons [ buttonType ] , buttonType ) ;
219219 } ) ;
220220 }
@@ -238,7 +238,7 @@ function($scope, $element, $attrs, $compile, $timeout, $ionicNavBarDelegate, $io
238238 ionic . DomUtil . cachedAttr ( $element , 'nav-bar-transition' , $ionicConfig . navBar . transition ( ) ) ;
239239 ionic . DomUtil . cachedAttr ( $element , 'nav-bar-direction' , viewData . direction ) ;
240240
241- if ( navBarTransition . shouldAnimate ) {
241+ if ( navBarTransition . shouldAnimate ) {
242242 navBarAttr ( enteringHeaderBar , 'stage' ) ;
243243 } else {
244244 navBarAttr ( enteringHeaderBar , 'entering' ) ;
@@ -261,7 +261,7 @@ function($scope, $element, $attrs, $compile, $timeout, $ionicNavBarDelegate, $io
261261
262262 queuedTransitionEnd = function ( ) {
263263 if ( latestTransitionId == transitionId || ! navBarTransition . shouldAnimate ) {
264- for ( var x = 0 ; x < headerBars . length ; x ++ ) {
264+ for ( var x = 0 ; x < headerBars . length ; x ++ ) {
265265 headerBars [ x ] . isActive = false ;
266266 }
267267 enteringHeaderBar . isActive = true ;
@@ -313,7 +313,7 @@ function($scope, $element, $attrs, $compile, $timeout, $ionicNavBarDelegate, $io
313313 self . visibleBar ( val ) ;
314314
315315 // set non primary to hide second
316- for ( var x = 0 ; x < $ionicNavBarDelegate . _instances . length ; x ++ ) {
316+ for ( var x = 0 ; x < $ionicNavBarDelegate . _instances . length ; x ++ ) {
317317 if ( $ionicNavBarDelegate . _instances [ x ] !== self ) $ionicNavBarDelegate . _instances [ x ] . visibleBar ( false ) ;
318318 }
319319 } ;
@@ -338,21 +338,21 @@ function($scope, $element, $attrs, $compile, $timeout, $ionicNavBarDelegate, $io
338338
339339
340340 function createNavElement ( type ) {
341- if ( navElementHtml [ type ] ) {
341+ if ( navElementHtml [ type ] ) {
342342 return jqLite ( navElementHtml [ type ] ) ;
343343 }
344344 }
345345
346346
347347 function getOnScreenHeaderBar ( ) {
348- for ( var x = 0 ; x < headerBars . length ; x ++ ) {
348+ for ( var x = 0 ; x < headerBars . length ; x ++ ) {
349349 if ( headerBars [ x ] . isActive ) return headerBars [ x ] ;
350350 }
351351 }
352352
353353
354354 function getOffScreenHeaderBar ( ) {
355- for ( var x = 0 ; x < headerBars . length ; x ++ ) {
355+ for ( var x = 0 ; x < headerBars . length ; x ++ ) {
356356 if ( ! headerBars [ x ] . isActive ) return headerBars [ x ] ;
357357 }
358358 }
@@ -363,12 +363,12 @@ function($scope, $element, $attrs, $compile, $timeout, $ionicNavBarDelegate, $io
363363 }
364364
365365
366- $scope . $on ( 'ionHeaderBar.init' , function ( ev ) {
366+ $scope . $on ( 'ionHeaderBar.init' , function ( ev ) {
367367 ev . stopPropagation ( ) ;
368368 } ) ;
369369
370370
371- $scope . $on ( '$destroy' , function ( ) {
371+ $scope . $on ( '$destroy' , function ( ) {
372372 $scope . $parent . $hasHeader = false ;
373373 $element . parent ( ) . removeData ( DATA_NAV_BAR_CTRL ) ;
374374 for ( var x = 0 ; x < headerBars . length ; x ++ ) {
@@ -380,4 +380,3 @@ function($scope, $element, $attrs, $compile, $timeout, $ionicNavBarDelegate, $io
380380 } ) ;
381381
382382} ] ) ;
383-
0 commit comments