Bug 1045115 - Uplift Add-on SDK to Firefox r=me

This commit is contained in:
Erik Vold
2014-07-29 17:14:18 -07:00
parent ffeaeb4bb3
commit d372810ecf
44 changed files with 154 additions and 81 deletions

View File

@@ -51,7 +51,7 @@ exports.windowIterator = windowIterator;
* interface.
*/
function browserWindowIterator() {
for each (let window in windowIterator()) {
for (let window of windowIterator()) {
if (isBrowser(window))
yield window;
}
@@ -66,7 +66,7 @@ function WindowTracker(delegate) {
this._delegate = delegate;
this._loadingWindows = [];
for each (let window in getWindows())
for (let window of getWindows())
this._regWindow(window);
windowWatcher.registerNotification(this);
this._onToplevelWindowReady = this._onToplevelWindowReady.bind(this);
@@ -120,7 +120,7 @@ WindowTracker.prototype = {
unload: function unload() {
windowWatcher.unregisterNotification(this);
events.off('toplevel-window-ready', this._onToplevelWindowReady);
for each (let window in getWindows())
for (let window of getWindows())
this._unregWindow(window);
},