(js) Cleanup sg-search directive
This commit is contained in:
parent
2949bef902
commit
524a481340
|
@ -100,10 +100,7 @@
|
||||||
*/
|
*/
|
||||||
sgSearchController.$inject = ['$window', '$scope', '$element'];
|
sgSearchController.$inject = ['$window', '$scope', '$element'];
|
||||||
function sgSearchController($window, $scope, $element) {
|
function sgSearchController($window, $scope, $element) {
|
||||||
var vm = this, minLength;
|
var vm = this;
|
||||||
|
|
||||||
// Domain's defaults
|
|
||||||
minLength = angular.isNumber($window.minimumSearchLength)? $window.minimumSearchLength : 2;
|
|
||||||
|
|
||||||
// Controller variables
|
// Controller variables
|
||||||
vm.searchText = null;
|
vm.searchText = null;
|
||||||
|
|
Loading…
Reference in a new issue