From 892516d42b6aa70904e43a708fb162e9088eeafe Mon Sep 17 00:00:00 2001 From: Adam Bradley Date: Mon, 9 Feb 2015 21:16:52 -0600 Subject: [PATCH] fix(navBar): use $attrs['class'], not $attrs.class Closes #3062 --- js/angular/controller/navBarController.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/angular/controller/navBarController.js b/js/angular/controller/navBarController.js index 087a964318b..1e8da8cbd09 100644 --- a/js/angular/controller/navBarController.js +++ b/js/angular/controller/navBarController.js @@ -48,7 +48,7 @@ function($scope, $element, $attrs, $compile, $timeout, $ionicNavBarDelegate, $io ionic.DomUtil.cachedAttr(containerEle, 'nav-bar', isActive ? 'active' : 'cached'); var alignTitle = $attrs.alignTitle || $ionicConfig.navBar.alignTitle(); - var headerBarEle = jqLite('').addClass($attrs.class).attr('align-title', alignTitle); + var headerBarEle = jqLite('').addClass($attrs['class']).attr('align-title', alignTitle); if (isDefined($attrs.noTapScroll)) headerBarEle.attr('no-tap-scroll', $attrs.noTapScroll); var titleEle = jqLite('
'); var navEle = {};