Remove unused variable

It is only set to empty then passed
This commit is contained in:
Nick Schonning 2014-03-07 01:35:17 -05:00
parent db5ff5f311
commit 8b3f2a8685
1 changed files with 1 additions and 2 deletions

View File

@ -265,8 +265,7 @@ $.fn.autocomplete = function(options) {
var prevChar = me.val().charAt(caretPosition - 1);
if (!prevChar || /\s/.test(prevChar)) {
completeStart = completeEnd = caretPosition;
var term = "";
updateAutoComplete(options.dataSource(term));
updateAutoComplete(options.dataSource(""));
}
}
});