Skip to content
This repository was archived by the owner on Oct 2, 2019. It is now read-only.

Commit 4471ab3

Browse files
committed
Fix minification
1 parent cd1e0a2 commit 4471ab3

File tree

2 files changed

+20
-12
lines changed

2 files changed

+20
-12
lines changed

dist/select.js

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,10 @@ angular.module('ui.select', [])
2222
defaultPlaceholder: 'Select Item'
2323
})
2424

25-
.directive('uiSelect', function($document, $timeout, uiSelectConfig) {
25+
.directive('uiSelect',
26+
['$document', '$timeout', 'uiSelectConfig',
27+
function($document, $timeout, uiSelectConfig) {
28+
2629
return {
2730
restrict: 'E',
2831
templateUrl: function(tElement, tAttrs) {
@@ -103,9 +106,9 @@ angular.module('ui.select', [])
103106
});
104107
}
105108
};
106-
})
109+
}])
107110

108-
.directive('choices', function($sce, uiSelectConfig) {
111+
.directive('choices', ['$sce', 'uiSelectConfig', function($sce, uiSelectConfig) {
109112
var HOT_KEYS = [9, 13, 27, 38, 40];
110113
return {
111114
require: '^uiSelect',
@@ -117,6 +120,7 @@ angular.module('ui.select', [])
117120
var theme = tElement.parent().attr('theme') || uiSelectConfig.defaultTheme;
118121
return theme + '/choices.tpl.html';
119122
},
123+
120124
compile: function(tElement, tAttrs) {
121125

122126
tElement.querySelectorAll('.ui-select-choices-row')
@@ -192,9 +196,9 @@ angular.module('ui.select', [])
192196
};
193197
}
194198
};
195-
})
199+
}])
196200

197-
.directive('match', function($compile, uiSelectConfig) {
201+
.directive('match', ['$compile', 'uiSelectConfig', function($compile, uiSelectConfig) {
198202
return {
199203
restrict: 'E',
200204
transclude: true,
@@ -208,7 +212,7 @@ angular.module('ui.select', [])
208212
scope.placeholder = attrs.placeholder || uiSelectConfig.defaultPlaceholder;
209213
}
210214
};
211-
})
215+
}])
212216

213217
.filter('highlight', function() {
214218
function escapeRegexp(queryToEscape) {

src/select.js

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,10 @@ angular.module('ui.select', [])
2222
defaultPlaceholder: 'Select Item'
2323
})
2424

25-
.directive('uiSelect', function($document, $timeout, uiSelectConfig) {
25+
.directive('uiSelect',
26+
['$document', '$timeout', 'uiSelectConfig',
27+
function($document, $timeout, uiSelectConfig) {
28+
2629
return {
2730
restrict: 'E',
2831
templateUrl: function(tElement, tAttrs) {
@@ -103,9 +106,9 @@ angular.module('ui.select', [])
103106
});
104107
}
105108
};
106-
})
109+
}])
107110

108-
.directive('choices', function($sce, uiSelectConfig) {
111+
.directive('choices', ['$sce', 'uiSelectConfig', function($sce, uiSelectConfig) {
109112
var HOT_KEYS = [9, 13, 27, 38, 40];
110113
return {
111114
require: '^uiSelect',
@@ -117,6 +120,7 @@ angular.module('ui.select', [])
117120
var theme = tElement.parent().attr('theme') || uiSelectConfig.defaultTheme;
118121
return theme + '/choices.tpl.html';
119122
},
123+
120124
compile: function(tElement, tAttrs) {
121125

122126
tElement.querySelectorAll('.ui-select-choices-row')
@@ -192,9 +196,9 @@ angular.module('ui.select', [])
192196
};
193197
}
194198
};
195-
})
199+
}])
196200

197-
.directive('match', function($compile, uiSelectConfig) {
201+
.directive('match', ['$compile', 'uiSelectConfig', function($compile, uiSelectConfig) {
198202
return {
199203
restrict: 'E',
200204
transclude: true,
@@ -208,7 +212,7 @@ angular.module('ui.select', [])
208212
scope.placeholder = attrs.placeholder || uiSelectConfig.defaultPlaceholder;
209213
}
210214
};
211-
})
215+
}])
212216

213217
.filter('highlight', function() {
214218
function escapeRegexp(queryToEscape) {

0 commit comments

Comments
 (0)