X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=common%2Fcontent%2Fmow.js;fp=common%2Fcontent%2Fmow.js;h=6ef53f8fb54e278b3b3cbf652575102b63bedc45;hb=378bd64ab2a4ea1b5c9db33610b0f6aa91807001;hp=689d9a793120ee4c8c94fa92f169bae7d960ce11;hpb=18c7ca5d1dae90b58e08cb4146c7d725081dd460;p=dactyl.git diff --git a/common/content/mow.js b/common/content/mow.js index 689d9a7..6ef53f8 100644 --- a/common/content/mow.js +++ b/common/content/mow.js @@ -157,7 +157,7 @@ var MOW = Module("mow", { dactyl.open(event.target.href, where); }; - if (event.target instanceof HTMLAnchorElement) + if (event.target instanceof Ci.nsIDOMHTMLAnchorElement) switch (DOM.Event.stringify(event)) { case "": openLink(dactyl.CURRENT_TAB); @@ -192,7 +192,7 @@ var MOW = Module("mow", { popupshowing: function onPopupShowing(event) { let menu = commandline.widgets.contextMenu; let enabled = { - link: window.document.popupNode instanceof HTMLAnchorElement, + link: window.document.popupNode instanceof Ci.nsIDOMHTMLAnchorElement, path: window.document.popupNode.hasAttribute("path"), selection: !window.document.commandDispatcher.focusedWindow.getSelection().isCollapsed }; @@ -399,4 +399,4 @@ var MOW = Module("mow", { } }); -// vim: set fdm=marker sw=4 ts=4 et: +// vim: set fdm=marker sw=4 sts=4 ts=8 et: