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

Commit

Permalink
fix(autocomplete): fixes infinite digest issue in IE11
Browse files Browse the repository at this point in the history
Closes #3101
  • Loading branch information
Robert Messerle committed Jun 29, 2015
1 parent 556be5f commit f5959cc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/components/tabs/js/tabsController.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,6 @@ function MdTabsController ($scope, $element, $window, $timeout, $mdConstant, $md

function bindEvents () {
angular.element($window).on('resize', handleWindowResize);
angular.element(elements.paging).on('DOMSubtreeModified', ctrl.updateInkBarStyles);
angular.element(elements.paging).on('DOMSubtreeModified', ctrl.updatePagination);
}

function configureWatchers () {
Expand Down
4 changes: 4 additions & 0 deletions src/components/tabs/js/templateDirective.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ function MdTemplate ($compile, $mdUtil, $timeout) {
var compileScope = scope.compileScope.$new();
element.html(scope.template);
$compile(element.contents())(compileScope);
element.on('DOMSubtreeModified', function () {
ctrl.updatePagination();
ctrl.updateInkBarStyles();
});
return $timeout(handleScope);
function handleScope () {
scope.$watch('connected', function (value) { value === false ? disconnect() : reconnect(); });
Expand Down

0 comments on commit f5959cc

Please sign in to comment.