Fix a bug in the palette from i18n transition.

This commit is contained in:
Thomas Wilburn 2014-07-17 00:05:42 -07:00
parent 9a0e97583d
commit cb24c38915

View file

@ -176,7 +176,7 @@ define([
var bMatch = fuzzyCommand.exec(bLabel);
var aScore = aMatch.index + aMatch[0].length;
var bScore = bMatch.index + bMatch[0].length;
if (aScore == bScore) return ((aLabel) < (b.Label) ? -1 : 1);
if (aScore == bScore) return ((aLabel) < (bLabel) ? -1 : 1);
return aScore - bScore;
});
this.results = results.slice(0, findResultsLimit);