Skip to content

Commit

Permalink
feat: update dist files
Browse files Browse the repository at this point in the history
  • Loading branch information
samouss committed May 24, 2018
1 parent a47696d commit 9babf2e
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 19 deletions.
12 changes: 7 additions & 5 deletions dist/autocomplete.angular.js
Original file line number Diff line number Diff line change
Expand Up @@ -2479,19 +2479,21 @@
handleSuggestions.apply(this, [this.cachedSuggestions].concat(this.cachedRenderExtraArgs));
} else {
var that = this;
var execSource = function() { that.source(query, handleSuggestions.bind(that)); };
var execSource = function() {
// When the call is debounced the condition avoid to do a useless
// request with the last character when the input has been cleared
if (!that.canceled) {
that.source(query, handleSuggestions.bind(that));
}
};

if (this.debounce) {
var later = function() {
that.debounceTimeout = null;
execSource();
};
var callNow = !this.debounceTimeout;
clearTimeout(this.debounceTimeout);
this.debounceTimeout = setTimeout(later, this.debounce);
if (callNow) {
execSource();
}
} else {
execSource();
}
Expand Down
2 changes: 1 addition & 1 deletion dist/autocomplete.angular.min.js

Large diffs are not rendered by default.

12 changes: 7 additions & 5 deletions dist/autocomplete.jquery.js
Original file line number Diff line number Diff line change
Expand Up @@ -2528,19 +2528,21 @@
handleSuggestions.apply(this, [this.cachedSuggestions].concat(this.cachedRenderExtraArgs));
} else {
var that = this;
var execSource = function() { that.source(query, handleSuggestions.bind(that)); };
var execSource = function() {
// When the call is debounced the condition avoid to do a useless
// request with the last character when the input has been cleared
if (!that.canceled) {
that.source(query, handleSuggestions.bind(that));
}
};

if (this.debounce) {
var later = function() {
that.debounceTimeout = null;
execSource();
};
var callNow = !this.debounceTimeout;
clearTimeout(this.debounceTimeout);
this.debounceTimeout = setTimeout(later, this.debounce);
if (callNow) {
execSource();
}
} else {
execSource();
}
Expand Down
4 changes: 2 additions & 2 deletions dist/autocomplete.jquery.min.js

Large diffs are not rendered by default.

12 changes: 7 additions & 5 deletions dist/autocomplete.js
Original file line number Diff line number Diff line change
Expand Up @@ -3778,19 +3778,21 @@ return /******/ (function(modules) { // webpackBootstrap
handleSuggestions.apply(this, [this.cachedSuggestions].concat(this.cachedRenderExtraArgs));
} else {
var that = this;
var execSource = function() { that.source(query, handleSuggestions.bind(that)); };
var execSource = function() {
// When the call is debounced the condition avoid to do a useless
// request with the last character when the input has been cleared
if (!that.canceled) {
that.source(query, handleSuggestions.bind(that));
}
};

if (this.debounce) {
var later = function() {
that.debounceTimeout = null;
execSource();
};
var callNow = !this.debounceTimeout;
clearTimeout(this.debounceTimeout);
this.debounceTimeout = setTimeout(later, this.debounce);
if (callNow) {
execSource();
}
} else {
execSource();
}
Expand Down
2 changes: 1 addition & 1 deletion dist/autocomplete.min.js

Large diffs are not rendered by default.

0 comments on commit 9babf2e

Please sign in to comment.