mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-03 19:14:11 +01:00
ES6-ify some things. Still a long way to go...
This commit is contained in:
@@ -1778,9 +1778,9 @@ var Util = Module("Util", XPCOM([Ci.nsIObserver, Ci.nsISupportsWeakReference]),
|
||||
* @returns {Generator(nsIDOMWindow)}
|
||||
*/
|
||||
iterFrames: function* iterFrames(win) {
|
||||
yield win;
|
||||
for (let i = 0; i < win.frames.length; i++)
|
||||
yield* iterFrames(win.frames[i]);
|
||||
yield win;
|
||||
for (let i = 0; i < win.frames.length; i++)
|
||||
yield* iterFrames(win.frames[i]);
|
||||
},
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user