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

Commit

Permalink
Minor fixes from PR feedback.
Browse files Browse the repository at this point in the history
  • Loading branch information
topherfangio committed Oct 2, 2015
1 parent eef1a6f commit a49a6b0
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/components/autocomplete/js/autocompleteController.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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);
}
}
Expand Down Expand Up @@ -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();
}
Expand Down Expand Up @@ -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:
}
Expand Down

0 comments on commit a49a6b0

Please sign in to comment.