X-Git-Url: https://git.donarmstrong.com/?p=dactyl.git;a=blobdiff_plain;f=common%2Fcontent%2Fmow.js;h=6ef53f8fb54e278b3b3cbf652575102b63bedc45;hp=689d9a793120ee4c8c94fa92f169bae7d960ce11;hb=3d837eb266a3a01d424192aa4ec1a167366178c5;hpb=d8a3bcebff36df7b128b36e0b57b715479e155a0 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: