Remove unused variable
It is only set to empty then passed
This commit is contained in:
parent
db5ff5f311
commit
8b3f2a8685
|
@ -265,8 +265,7 @@ $.fn.autocomplete = function(options) {
|
||||||
var prevChar = me.val().charAt(caretPosition - 1);
|
var prevChar = me.val().charAt(caretPosition - 1);
|
||||||
if (!prevChar || /\s/.test(prevChar)) {
|
if (!prevChar || /\s/.test(prevChar)) {
|
||||||
completeStart = completeEnd = caretPosition;
|
completeStart = completeEnd = caretPosition;
|
||||||
var term = "";
|
updateAutoComplete(options.dataSource(""));
|
||||||
updateAutoComplete(options.dataSource(term));
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue