mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-12 10:55:46 +01:00
Fix some initialization order issues.
This commit is contained in:
@@ -996,7 +996,8 @@ unlet s:cpo_save
|
||||
}]);
|
||||
|
||||
},
|
||||
modes: function (dactyl, modules, window) {
|
||||
modes: function initModes(dactyl, modules, window) {
|
||||
initModes.require("commandline");
|
||||
const { modes } = modules;
|
||||
|
||||
modes.addMode("FILE_INPUT", {
|
||||
|
||||
@@ -700,6 +700,7 @@ var JavaScript = Module("javascript", {
|
||||
});
|
||||
},
|
||||
modes: function initModes(dactyl, modules, window) {
|
||||
initModes.require("commandline");
|
||||
const { modes } = modules;
|
||||
|
||||
modes.addMode("REPL", {
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user