Bug 1207498 - Part 1: Remove use of expression closure from toolkit/components/, except tests. r=Gijs

This commit is contained in:
Tooru Fujisawa
2015-09-24 20:32:23 +09:00
parent 9dd92bbcc9
commit afbd2956bc
32 changed files with 310 additions and 182 deletions

View File

@@ -242,7 +242,7 @@ FormAutoComplete.prototype = {
let entry = entries[i];
// Remove results that do not contain the token
// XXX bug 394604 -- .toLowerCase can be wrong for some intl chars
if(searchTokens.some(function (tok) entry.textLowerCase.indexOf(tok) < 0))
if(searchTokens.some(tok => entry.textLowerCase.indexOf(tok) < 0))
continue;
this._calculateScore(entry, searchString, searchTokens);
this.log("Reusing autocomplete entry '" + entry.text +