From a49a6b0b1e1399e08d10f0008f4340c2b437e5da Mon Sep 17 00:00:00 2001 From: Topher Fangio Date: Fri, 2 Oct 2015 15:30:20 -0500 Subject: [PATCH] Minor fixes from PR feedback. --- .../autocomplete/js/autocompleteController.js | 12 ------------ 1 file changed, 12 deletions(-) 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: }