knockout.typeahead
Advanced tools
Comparing version 4.2.0 to 4.2.1
@@ -28,2 +28,3 @@ var ko = require("knockout"); | ||
} : {}; | ||
var remoteData = { | ||
@@ -35,5 +36,6 @@ url: url, | ||
}; | ||
if (remoteFilter) { | ||
remoteData.filter = remoteFilter; | ||
}; | ||
} | ||
@@ -75,10 +77,10 @@ var resultsLimit = allBindings.get("limit") || 10; | ||
$(element) | ||
.typeahead(jQuery.extend({ | ||
.typeahead($.extend({ | ||
hint: true, | ||
highlight: true, | ||
highlight: true | ||
}, user_typeahead_options), typeaheadOpts) | ||
.on("typeahead:selected typeahead:autocompleted", function (e, suggestion) { | ||
if (onSelect) { | ||
onSelect(value, suggestion, e) | ||
}else if (value && ko.isObservable(value)) { | ||
onSelect(value, suggestion, e); | ||
} else if (value && ko.isObservable(value)) { | ||
value(suggestion); | ||
@@ -85,0 +87,0 @@ } |
{ | ||
"name": "knockout.typeahead", | ||
"version": "4.2.0", | ||
"version": "4.2.1", | ||
"description": "Simple knockout binding which wraps Twitter typeahead.js", | ||
@@ -5,0 +5,0 @@ "main": "knockout.typeahead.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9706
11
1