From 0022f5b21f569df7e9afd7156b3d1eef886cea59 Mon Sep 17 00:00:00 2001 From: Johan Halse Date: Tue, 28 Apr 2015 07:49:05 +0200 Subject: [PATCH] Fix broken passing of event object --- ...iny-autocomplete-0.4.2.js => tiny-autocomplete-0.4.3.js} | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) rename src/{tiny-autocomplete-0.4.2.js => tiny-autocomplete-0.4.3.js} (99%) diff --git a/src/tiny-autocomplete-0.4.2.js b/src/tiny-autocomplete-0.4.3.js similarity index 99% rename from src/tiny-autocomplete-0.4.2.js rename to src/tiny-autocomplete-0.4.3.js index 56af1e9..7e89f42 100644 --- a/src/tiny-autocomplete-0.4.2.js +++ b/src/tiny-autocomplete-0.4.3.js @@ -3,7 +3,7 @@ * Small and fast autocomplete plugin for Zepto and jQuery. * Written by Johan Halse, https://twitter.com/hejsna, johan@varvet.se * License: http://johanhalse.mit-license.org - * @version 0.4.2 + * @version 0.4.3 * @return {object} Self */ (function(window, $) { @@ -517,7 +517,7 @@ this.nextItem(); } if(e.keyCode == 13) { // Enter - this.onPressEnter(); + this.onPressEnter(e); } if(e.keyCode == 27) { // Esc e.preventDefault(); @@ -539,7 +539,7 @@ * User has pressed enter, select object or perform search. * @return {null} */ - onPressEnter: function() { + onPressEnter: function(e) { // If field is filled in but no item is selected, we don't block // submit if(this.selectedItem === null) {