Bug 806770 - Fix strict mode warning in richlistbox.xml. r=Yoric

This commit is contained in:
Sunny 2013-01-26 12:57:59 -05:00
parent 39c2cfbb13
commit 9a4238f55d

View File

@ -60,7 +60,7 @@
// remember the current item and all selected items with IDs
var state = this.currentItem ? this.currentItem.id : "";
if (this.selType == "multiple" && this.selectedCount) {
function getId(aItem) { return aItem.id; }
let getId = function getId(aItem) { return aItem.id; }
state += " " + this.selectedItems.filter(getId).map(getId).join(" ");
}
if (state)