Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: lib/prefs.js

Issue 5442569823584256: Issue 189 - Implement API changes from #117, #153, #192 in Chrome (Closed)
Patch Set: Fixed #301 fallout as well Created April 15, 2014, 7:03 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« background.js ('K') | « lib/filesystem/io.js ('k') | lib/storage/io.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/prefs.js
===================================================================
--- a/lib/prefs.js
+++ b/lib/prefs.js
@@ -76,17 +76,17 @@ function defineProperty(key)
let stringified = JSON.stringify(newValue);
if (stringified != JSON.stringify(defaults[key]))
ext.storage[key] = stringified;
else
delete ext.storage[key];
value = newValue;
- for each (let listener in listeners)
+ for (let listener of listeners)
listener(key);
return value;
});
}
let Prefs = exports.Prefs = {
« background.js ('K') | « lib/filesystem/io.js ('k') | lib/storage/io.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld