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

Unified Diff: lib/utils.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/storage/io.js ('k') | no next file » | 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
@@ -42,17 +42,17 @@ var Utils = exports.Utils = {
// Hack: Opera will happily run asynchronous actions while scripts are
// loading, queue them until the document is ready.
let loadHandler = function()
{
document.removeEventListener("DOMContentLoaded", loadHandler, false);
let queue = runAsyncQueue;
runAsyncQueue = null;
- for each (let callback in queue)
+ for (let callback of queue)
{
try
{
callback();
}
catch(e)
{
Cu.reportError(e);
@@ -137,13 +137,13 @@ var Utils = exports.Utils = {
},
getDocLink: function(linkID)
{
var Prefs = require("prefs").Prefs;
var docLink = Prefs.documentation_link;
return docLink.replace(/%LINK%/g, linkID).replace(/%LANG%/g, Utils.appLocale);
},
-
+
yield: function()
{
}
};
« background.js ('K') | « lib/storage/io.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld