Skip to content

Commit c00f854

Browse files
committed
Rebuild dist.
1 parent fb27183 commit c00f854

File tree

7 files changed

+23
-21
lines changed

7 files changed

+23
-21
lines changed

dist/bloodhound.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
/*!
22
* typeahead.js 0.11.1
33
* https://github.com/twitter/typeahead.js
4-
* Copyright 2013-2015 Twitter, Inc. and other contributors; Licensed MIT
4+
* Copyright 2013-2019 Twitter, Inc. and other contributors; Licensed MIT
55
*/
66

77
(function(root, factory) {
88
if (typeof define === "function" && define.amd) {
99
define("bloodhound", [ "jquery" ], function(a0) {
1010
return root["Bloodhound"] = factory(a0);
1111
});
12-
} else if (typeof exports === "object") {
12+
} else if (typeof module === "object" && module.exports) {
1313
module.exports = factory(require("jquery"));
1414
} else {
15-
root["Bloodhound"] = factory(jQuery);
15+
root["Bloodhound"] = factory(root["jQuery"]);
1616
}
1717
})(this, function($) {
1818
var _ = function() {

dist/bloodhound.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/typeahead.bundle.js

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
/*!
22
* typeahead.js 0.11.1
33
* https://github.com/twitter/typeahead.js
4-
* Copyright 2013-2015 Twitter, Inc. and other contributors; Licensed MIT
4+
* Copyright 2013-2019 Twitter, Inc. and other contributors; Licensed MIT
55
*/
66

77
(function(root, factory) {
88
if (typeof define === "function" && define.amd) {
99
define("bloodhound", [ "jquery" ], function(a0) {
1010
return root["Bloodhound"] = factory(a0);
1111
});
12-
} else if (typeof exports === "object") {
12+
} else if (typeof module === "object" && module.exports) {
1313
module.exports = factory(require("jquery"));
1414
} else {
15-
root["Bloodhound"] = factory(jQuery);
15+
root["Bloodhound"] = factory(root["jQuery"]);
1616
}
1717
})(this, function($) {
1818
var _ = function() {
@@ -922,10 +922,10 @@
922922
define("typeahead.js", [ "jquery" ], function(a0) {
923923
return factory(a0);
924924
});
925-
} else if (typeof exports === "object") {
925+
} else if (typeof module === "object" && module.exports) {
926926
module.exports = factory(require("jquery"));
927927
} else {
928-
factory(jQuery);
928+
factory(root["jQuery"]);
929929
}
930930
})(this, function($) {
931931
var _ = function() {
@@ -1720,8 +1720,9 @@
17201720
suggestions = suggestions || [];
17211721
if (!canceled && rendered < that.limit) {
17221722
that.cancel = $.noop;
1723+
suggestions = suggestions.slice(0, Math.max(0, that.limit - rendered));
1724+
that._append(query, suggestions);
17231725
rendered += suggestions.length;
1724-
that._append(query, suggestions.slice(0, that.limit - rendered));
17251726
that.async && that.trigger("asyncReceived", query);
17261727
}
17271728
}

dist/typeahead.bundle.min.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/typeahead.jquery.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
/*!
22
* typeahead.js 0.11.1
33
* https://github.com/twitter/typeahead.js
4-
* Copyright 2013-2015 Twitter, Inc. and other contributors; Licensed MIT
4+
* Copyright 2013-2019 Twitter, Inc. and other contributors; Licensed MIT
55
*/
66

77
(function(root, factory) {
88
if (typeof define === "function" && define.amd) {
99
define("typeahead.js", [ "jquery" ], function(a0) {
1010
return factory(a0);
1111
});
12-
} else if (typeof exports === "object") {
12+
} else if (typeof module === "object" && module.exports) {
1313
module.exports = factory(require("jquery"));
1414
} else {
15-
factory(jQuery);
15+
factory(root["jQuery"]);
1616
}
1717
})(this, function($) {
1818
var _ = function() {
@@ -807,8 +807,9 @@
807807
suggestions = suggestions || [];
808808
if (!canceled && rendered < that.limit) {
809809
that.cancel = $.noop;
810+
suggestions = suggestions.slice(0, Math.max(0, that.limit - rendered));
811+
that._append(query, suggestions);
810812
rendered += suggestions.length;
811-
that._append(query, suggestions.slice(0, that.limit - rendered));
812813
that.async && that.trigger("asyncReceived", query);
813814
}
814815
}

dist/typeahead.jquery.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,4 +65,4 @@
6565
},
6666
"version": "0.11.1",
6767
"main": "dist/typeahead.bundle.js"
68-
}
68+
}

0 commit comments

Comments
 (0)