mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Remove unused variable
It is only set to empty then passed
This commit is contained in:
@@ -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(""));
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user