| 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() |
| { |
| } |
| }; |