Skip to content

Commit

Permalink
fix(titles): error during quick transition changes
Browse files Browse the repository at this point in the history
  • Loading branch information
adamdbradley committed Sep 16, 2014
1 parent 60b3f86 commit fe9f43d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/angular/controller/navBarController.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ function($scope, $element, $attrs, $ionicViewService, $animate, $compile, $ionic
currentTitles = $element[0].querySelectorAll('.title');
if (currentTitles.length) {
oldTitleEl = $compile('<h1 class="title" ng-bind-html="oldTitle"></h1>')($scope);
jqLite(currentTitles[0]).replaceWith(oldTitleEl);
jqLite(currentTitles[currentTitles.length-1]).replaceWith(oldTitleEl);
}
//Compile new title
newTitleEl = $compile('<h1 class="title invisible" ng-bind-html="title"></h1>')($scope);
Expand Down

0 comments on commit fe9f43d

Please sign in to comment.