Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

Commit

Permalink
fix(tabs): fixes infinite digests bug in Firefox
Browse files Browse the repository at this point in the history
Related to #3101
  • Loading branch information
Robert Messerle committed Jun 10, 2015
1 parent d0b385d commit 781929d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/components/tabs/js/tabsController.js
Original file line number Diff line number Diff line change
Expand Up @@ -558,12 +558,11 @@ function MdTabsController ($scope, $element, $window, $timeout, $mdConstant, $md
var newIndex = $scope.selectedIndex,
oldIndex = ctrl.lastSelectedIndex,
ink = angular.element(elements.inkBar);
ink.removeClass('md-left md-right');
if (!angular.isNumber(oldIndex)) return;
if (newIndex < oldIndex) {
ink.addClass('md-left');
ink.addClass('md-left').removeClass('md-right');
} else if (newIndex > oldIndex) {
ink.addClass('md-right');
ink.addClass('md-right').removeClass('md-left');
}
}

Expand Down

0 comments on commit 781929d

Please sign in to comment.