mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-08 12:22:34 +00:00
Bug 1015380 - Fix up Settings API to avoid unnecessarily modifying content objects. r=fabrice
This commit is contained in:
parent
bd6b6ee02e
commit
6426741196
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user