Skip to content

Commit

Permalink
Use the required jquery rather than any global variable
Browse files Browse the repository at this point in the history
This causes apps not using any global jQuery to break. Broken in #9
  • Loading branch information
chadly committed Feb 6, 2018
1 parent 6460712 commit 5127564
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion knockout.typeahead.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ ko.bindingHandlers.typeahead = {
}

$(element)
.typeahead(jQuery.extend({
.typeahead($.extend({
hint: true,
highlight: true,
}, user_typeahead_options), typeaheadOpts)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "knockout.typeahead",
"version": "4.2.0",
"version": "4.2.1",
"description": "Simple knockout binding which wraps Twitter typeahead.js",
"main": "knockout.typeahead.js",
"scripts": {
Expand Down

0 comments on commit 5127564

Please sign in to comment.