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

Unified Diff: lib/utils.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/prefs.js ('k') | test/FilterEngine.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/utils.js
===================================================================
--- a/lib/utils.js
+++ b/lib/utils.js
@@ -44,17 +44,17 @@ var Utils = exports.Utils = {
},
checkLocalePrefixMatch: function(prefixes)
{
if (!prefixes)
return null;
let list = prefixes.split(",");
- for each (let prefix in list)
+ for (let prefix of list)
if (new RegExp("^" + prefix + "\\b").test(this.appLocale))
return prefix;
return null;
},
chooseFilterSubscription: function(subscriptions)
{
@@ -88,10 +88,14 @@ var Utils = exports.Utils = {
{
selectedItem = subscription;
selectedPrefix = prefix;
}
}
}
}
return selectedItem;
+ },
+
+ yield: function()
+ {
}
};
« lib/init.js ('K') | « lib/prefs.js ('k') | test/FilterEngine.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld