1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-04 00:14:11 +01:00

Fix :runtime completion.

This commit is contained in:
Kris Maglione
2010-12-17 20:01:59 -05:00
parent 754d490a56
commit 8f4d26f9ac
11 changed files with 39 additions and 38 deletions

View File

@@ -363,7 +363,7 @@ const Dactyl = Module("dactyl", {
return;
let win = document.commandDispatcher.focusedWindow;
let elem = config.mainWidget || window.content;
let elem = config.mainWidget || content;
// TODO: make more generic
try {
if (this.has("mail") && !config.isComposeWindow) {
@@ -374,7 +374,7 @@ const Dactyl = Module("dactyl", {
}
else {
let frame = buffer.focusedFrame;
if (frame && frame.top == window.content && !Editor.getEditor(frame))
if (frame && frame.top == content && !Editor.getEditor(frame))
elem = frame;
}
}
@@ -624,7 +624,7 @@ const Dactyl = Module("dactyl", {
data.push(<>{node.textContent}</>.toXMLString());
}
}
fix(window.content.document.documentElement);
fix(content.document.documentElement);
addDataEntry(file + ".xhtml", data.join(""));
}