mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 700389 - Simplify sortByTotalScore. r=zpao
This commit is contained in:
parent
8e49acb81a
commit
b6126dbd91
@ -163,9 +163,7 @@ FormAutoComplete.prototype = {
|
||||
*/
|
||||
autoCompleteSearch : function (aInputName, aUntrimmedSearchString, aField, aPreviousResult) {
|
||||
function sortBytotalScore (a, b) {
|
||||
let x = a.totalScore;
|
||||
let y = b.totalScore;
|
||||
return ((x > y) ? -1 : ((x < y) ? 1 : 0));
|
||||
return b.totalScore - a.totalScore;
|
||||
}
|
||||
|
||||
if (!this._enabled)
|
||||
|
Loading…
Reference in New Issue
Block a user