diff --git a/src/components/autocomplete/js/autocompleteController.js b/src/components/autocomplete/js/autocompleteController.js index 3298b3922e2..f66a180b845 100644 --- a/src/components/autocomplete/js/autocompleteController.js +++ b/src/components/autocomplete/js/autocompleteController.js @@ -51,10 +51,6 @@ function MdAutocompleteCtrl ($scope, $element, $mdUtil, $mdConstant, $mdTheming, ctrl.notFoundVisible = notFoundVisible; ctrl.loadingIsVisible = loadingIsVisible; - //-- "private" methods - ctrl.shouldHide = shouldHide; - ctrl.shouldShow = shouldShow; - return init(); //-- initialization methods @@ -217,16 +213,12 @@ function MdAutocompleteCtrl ($scope, $element, $mdUtil, $mdConstant, $mdTheming, if (elements) { $mdUtil.nextTick(function () { - $mdUtil.disableScrollAround(elements.ul); - }, false, $scope); } } else if (hidden && !oldHidden) { $mdUtil.nextTick(function () { - $mdUtil.enableScrolling(); - }, false, $scope); } } @@ -370,7 +362,6 @@ function MdAutocompleteCtrl ($scope, $element, $mdUtil, $mdConstant, $mdTheming, hasFocus = true; //-- if searchText is null, let's force it to be a string if (!angular.isString($scope.searchText)) $scope.searchText = ''; - //if ($scope.minLength > 0) return; ctrl.hidden = shouldHide(); if (!ctrl.hidden) handleQuery(); } @@ -412,9 +403,6 @@ function MdAutocompleteCtrl ($scope, $element, $mdUtil, $mdConstant, $mdTheming, // Force the component to blur if they hit escape doBlur(true); - //ctrl.matches = []; - //ctrl.hidden = true; - //ctrl.index = getDefaultIndex(); break; default: }