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

fixed uiSelectHeader and uiSelectHeader injectables #1968

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion dist/select.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*!
* ui-select
* http://github.com/angular-ui/ui-select
* Version: 0.19.6 - 2017-04-12T06:30:23.759Z
* Version: 0.19.7 - 2017-04-12T12:13:11.417Z
* License: MIT
*/

Expand Down
60 changes: 30 additions & 30 deletions dist/select.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*!
* ui-select
* http://github.com/angular-ui/ui-select
* Version: 0.19.6 - 2017-04-12T06:30:23.591Z
* Version: 0.19.7 - 2017-04-12T12:13:11.344Z
* License: MIT
*/

Expand Down Expand Up @@ -184,31 +184,6 @@ var uis = angular.module('ui.select', [])
};
}]);

/**
* Debounces functions
*
* Taken from UI Bootstrap $$debounce source code
* See https://github.com/angular-ui/bootstrap/blob/master/src/debounce/debounce.js
*
*/
uis.factory('$$uisDebounce', ['$timeout', function($timeout) {
return function(callback, debounceTime) {
var timeoutPromise;

return function() {
var self = this;
var args = Array.prototype.slice.call(arguments);
if (timeoutPromise) {
$timeout.cancel(timeoutPromise);
}

timeoutPromise = $timeout(function() {
callback.apply(self, args);
}, debounceTime);
};
};
}]);

uis.directive('uiSelectChoices',
['uiSelectConfig', 'uisRepeatParser', 'uiSelectMinErr', '$compile', '$window',
function(uiSelectConfig, RepeatParser, uiSelectMinErr, $compile, $window) {
Expand Down Expand Up @@ -1499,7 +1474,7 @@ uis.directive('uiSelect',
};
}]);

uis.directive('uiSelectFooter', function(uiSelectConfig){
uis.directive('uiSelectFooter', ['uiSelectConfig', function(uiSelectConfig){
return {
templateUrl: function (tElement) {
// Needed so the uiSelect can detect the transcluded content
Expand All @@ -1513,9 +1488,9 @@ uis.directive('uiSelectFooter', function(uiSelectConfig){
transclude: true,
replace: true
};
});
}]);

uis.directive('uiSelectHeader', function(uiSelectConfig){
uis.directive('uiSelectHeader', ['uiSelectConfig', function(uiSelectConfig){
return {
templateUrl: function (tElement) {
// Needed so the uiSelect can detect the transcluded content
Expand All @@ -1529,7 +1504,7 @@ uis.directive('uiSelectHeader', function(uiSelectConfig){
transclude: true,
replace: true
};
});
}]);

uis.directive('uiSelectMatch', ['uiSelectConfig', function(uiSelectConfig) {
return {
Expand Down Expand Up @@ -2352,6 +2327,31 @@ uis.directive('uiSelectSort', ['$timeout', 'uiSelectConfig', 'uiSelectMinErr', f
};
}]);

/**
* Debounces functions
*
* Taken from UI Bootstrap $$debounce source code
* See https://github.com/angular-ui/bootstrap/blob/master/src/debounce/debounce.js
*
*/
uis.factory('$$uisDebounce', ['$timeout', function($timeout) {
return function(callback, debounceTime) {
var timeoutPromise;

return function() {
var self = this;
var args = Array.prototype.slice.call(arguments);
if (timeoutPromise) {
$timeout.cancel(timeoutPromise);
}

timeoutPromise = $timeout(function() {
callback.apply(self, args);
}, debounceTime);
};
};
}]);

uis.directive('uisOpenClose', ['$parse', '$timeout', function ($parse, $timeout) {
return {
restrict: 'A',
Expand Down
2 changes: 1 addition & 1 deletion dist/select.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/select.min.css.map

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions dist/select.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/select.min.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/uiSelectFooterDirective.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
uis.directive('uiSelectFooter', function(uiSelectConfig){
uis.directive('uiSelectFooter', ['uiSelectConfig', function(uiSelectConfig){
return {
templateUrl: function (tElement) {
// Needed so the uiSelect can detect the transcluded content
Expand All @@ -12,4 +12,4 @@ uis.directive('uiSelectFooter', function(uiSelectConfig){
transclude: true,
replace: true
};
});
}]);
4 changes: 2 additions & 2 deletions src/uiSelectHeaderDirective.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
uis.directive('uiSelectHeader', function(uiSelectConfig){
uis.directive('uiSelectHeader', ['uiSelectConfig', function(uiSelectConfig){
return {
templateUrl: function (tElement) {
// Needed so the uiSelect can detect the transcluded content
Expand All @@ -12,4 +12,4 @@ uis.directive('uiSelectHeader', function(uiSelectConfig){
transclude: true,
replace: true
};
});
}]);