summaryrefslogtreecommitdiffstats
path: root/awesomplete.js
diff options
context:
space:
mode:
authorVladislav Zarakovsky <vlad.zar@gmail.com>2016-06-24 10:00:06 +0300
committerVladislav Zarakovsky <vlad.zar@gmail.com>2016-06-24 10:00:06 +0300
commitcb8868f39c5f107de5ffa4d21a68b668680986e8 (patch)
tree48c197b0fd7e0e5c7301e8afffad0083abd9af67 /awesomplete.js
parentf30069c0c3aa1d441b2aaa9aba691f000218b4b9 (diff)
downloadawesomplete-cb8868f39c5f107de5ffa4d21a68b668680986e8.zip
awesomplete-cb8868f39c5f107de5ffa4d21a68b668680986e8.tar.gz
awesomplete-cb8868f39c5f107de5ffa4d21a68b668680986e8.tar.bz2
Consistent quotes style
Diffstat (limited to 'awesomplete.js')
-rw-r--r--awesomplete.js12
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" });
}
}
};