You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 2, 2019. It is now read-only.
* Typeahead mode: lets the user refresh the collection using his own function.
158
162
*
159
163
* See Expose $select.search for external / remote filtering https://github.com/angular-ui/ui-select/pull/31
160
164
*/
161
165
ctrl.refresh=function(refreshAttr){
162
166
if(refreshAttr!==undefined){
163
-
$timeout(function(){
167
+
168
+
// Throttle / debounce
169
+
//
170
+
// See https://github.com/angular-ui/bootstrap/blob/0d4c2e21c3/src/typeahead/typeahead.js#L162
171
+
// FYI AngularStrap typeahead does not have debouncing: https://github.com/mgcrea/angular-strap/blob/1529ab4bbc/src/typeahead/typeahead.js#L172
0 commit comments