1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-07 03:34:12 +01:00

Fix some initialization order issues.

This commit is contained in:
Kris Maglione
2011-03-09 03:49:38 -05:00
parent dfd7398a4f
commit cc73345c71
6 changed files with 14 additions and 4 deletions

View File

@@ -931,7 +931,10 @@ var Util = Module("Util", XPCOM([Ci.nsIObserver, Ci.nsISupportsWeakReference]),
let docShells = window.docShell.getDocShellEnumerator(Ci.nsIDocShellTreeItem[type],
Ci.nsIDocShell.ENUMERATE_FORWARDS);
while (docShells.hasMoreElements())
yield docShells.getNext().QueryInterface(Ci.nsIDocShell).contentViewer.DOMDocument;
let (viewer = docShells.getNext().QueryInterface(Ci.nsIDocShell).contentViewer) {
if (viewer)
yield viewer.DOMDocument;
}
}
}
},