knockout.autocomplete
Advanced tools
Comparing version 1.1.1 to 1.2.0
@@ -28,4 +28,14 @@ /*global ko*/ | ||
this.visible = ko.observable(false); | ||
this.focused = ko.observable(false); | ||
this.visible.subscribe(function (value) { | ||
if (value) { | ||
this.focused(true); | ||
} | ||
}, this); | ||
} | ||
TimeComplete.prototype.hide = function (viewModel) { | ||
viewModel.visible(false); | ||
}; | ||
TimeComplete.prototype.toggleVisible = function (viewModel, event) { | ||
@@ -32,0 +42,0 @@ if (event.button === 0) { |
@@ -470,2 +470,7 @@ /*global ko, jQuery, define, document, window*/ | ||
} else { | ||
$dropdown.on('mouseenter', 'li', function (e) { | ||
var index = $(this).data('index'); | ||
moveSelection(selectedIndex, index); | ||
}); | ||
$dropdown.on('mousedown', 'li', function (e) { | ||
@@ -472,0 +477,0 @@ if (e.type === 'mousedown' && e.which !== 1) { |
{ | ||
"name": "knockout.autocomplete", | ||
"version": "1.1.1", | ||
"version": "1.2.0", | ||
"author": "Sune Sloth Simonsen <sune@we-knowhow.dk>", | ||
@@ -5,0 +5,0 @@ "dependencies": {}, |
Sorry, the diff of this file is not supported yet
626668
17172