Skip to content

Commit

Permalink
Ignore reset() if data already exists. This is not a clear method
Browse files Browse the repository at this point in the history
  • Loading branch information
slusarz committed Oct 2, 2014
1 parent 7a3f412 commit 3336caa
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions imp/js/autocomplete.js
Expand Up @@ -140,6 +140,10 @@ var IMP_Autocompleter = Class.create({

reset: function()
{
if (this.data && this.data.size()) {
return;
}

this.data = [];
this.currentEntries().invoke('remove');
this.processValue($F(this.elt));
Expand Down

0 comments on commit 3336caa

Please sign in to comment.