diff options
Diffstat (limited to 'awesomplete.js')
-rw-r--r-- | awesomplete.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/awesomplete.js b/awesomplete.js index 48c9e4b..939eabb 100644 --- a/awesomplete.js +++ b/awesomplete.js @@ -55,7 +55,7 @@ var _ = function (input, o) { $.bind(this.input, { "input": this.evaluate.bind(this), - "blur": this.close.bind(this, { reason: 'blur' }), + "blur": this.close.bind(this, { reason: "blur" }), "keydown": function(evt) { var c = evt.keyCode; @@ -67,7 +67,7 @@ var _ = function (input, o) { me.select(); } else if (c === 27) { // Esc - me.close({ reason: 'esc' }); + me.close({ reason: "esc" }); } else if (c === 38 || c === 40) { // Down/Up arrow evt.preventDefault(); @@ -77,7 +77,7 @@ var _ = function (input, o) { } }); - $.bind(this.input.form, {"submit": this.close.bind(this, { reason: 'submit' })}); + $.bind(this.input.form, {"submit": this.close.bind(this, { reason: "submit" })}); $.bind(this.ul, {"mousedown": function(evt) { var li = evt.target; @@ -216,7 +216,7 @@ _.prototype = { if (allowed) { this.replace(suggestion); - this.close({ reason: 'select' }); + this.close({ reason: "select" }); $.fire(this.input, "awesomplete-selectcomplete", { text: suggestion }); @@ -248,13 +248,13 @@ _.prototype = { }); if (this.ul.children.length === 0) { - this.close({ reason: 'nomatches' }); + this.close({ reason: "nomatches" }); } else { this.open(); } } else { - this.close({ reason: 'nomatches' }); + this.close({ reason: "nomatches" }); } } }; |