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

Unified Diff: lib/prefs.js

Issue 5740786045943808: Issue 189 - Implement API changes from #117, #153, #192 in libadblockplus (Closed)
Patch Set: Created April 14, 2014, 9:14 p.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
« lib/init.js ('K') | « lib/io.js ('k') | lib/utils.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
@@ -56,17 +56,17 @@ function defineProperty(key)
throw new Error("Attempt to change preference type");
if (value == defaults[key])
delete values[key];
else
values[key] = value;
save();
- for each (let listener in listeners)
+ for (let listener of listeners)
listener(key);
});
}
function load()
{
_fileSystem.read(path, function(result)
{
« lib/init.js ('K') | « lib/io.js ('k') | lib/utils.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld