knockout.typeahead
Advanced tools
Comparing version 4.0.0 to 4.1.0
@@ -18,2 +18,3 @@ var ko = require("knockout"); | ||
var mapping = ko.unwrap(allBindings().mappingFunction); | ||
var onSelect = allBindings.get("onSelectFunction"); | ||
var displayedProperty = ko.unwrap(allBindings().displayKey); | ||
@@ -77,3 +78,5 @@ var value = allBindings.get("value"); | ||
.on("typeahead:selected typeahead:autocompleted", function (e, suggestion) { | ||
if (value && ko.isObservable(value)) { | ||
if (onSelect) { | ||
onSelect(value, suggestion, e) | ||
}else if (value && ko.isObservable(value)) { | ||
value(suggestion); | ||
@@ -80,0 +83,0 @@ } |
{ | ||
"name": "knockout.typeahead", | ||
"version": "4.0.0", | ||
"version": "4.1.0", | ||
"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
114445
13
106
1