Bug 1015380 - Fix up Settings API to avoid unnecessarily modifying content objects. r=fabrice

This commit is contained in:
Bobby Holley 2014-05-28 11:14:26 -07:00
parent bd6b6ee02e
commit 6426741196

View File

@ -192,10 +192,11 @@ SettingsDB.prototype = {
}
// Fall-through, we now have a dictionary object.
let res = {};
for (let prop in aObject) {
aObject[prop] = this.prepareValue(aObject[prop]);
res[prop] = this.prepareValue(aObject[prop]);
}
return aObject;
return res;
},
init: function init() {