diff options
author | Moonchild <mcwerewolf@gmail.com> | 2018-04-14 19:47:10 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-14 19:47:10 +0200 |
commit | 08cfc34a05c6b0d237e10e40753dec605680e29a (patch) | |
tree | 5e180c89498c58316560f8917089c57684b61574 /application/palemoon/base/content/nsContextMenu.js | |
parent | 2b8a229ce330568b0b96db11007a9922fcb2ce9e (diff) | |
parent | 2054a1205e287c4bca3ba7af7d343a94c8df51f4 (diff) | |
download | UXP-08cfc34a05c6b0d237e10e40753dec605680e29a.tar UXP-08cfc34a05c6b0d237e10e40753dec605680e29a.tar.gz UXP-08cfc34a05c6b0d237e10e40753dec605680e29a.tar.lz UXP-08cfc34a05c6b0d237e10e40753dec605680e29a.tar.xz UXP-08cfc34a05c6b0d237e10e40753dec605680e29a.zip |
Merge pull request #164 from JustOff/PR_nsContextMenu_unreachable_code
Suppress false-positive warning about unreachable code after return in nsContextMenu.js
Diffstat (limited to 'application/palemoon/base/content/nsContextMenu.js')
-rw-r--r-- | application/palemoon/base/content/nsContextMenu.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/application/palemoon/base/content/nsContextMenu.js b/application/palemoon/base/content/nsContextMenu.js index 017ab87cc..1fe592b52 100644 --- a/application/palemoon/base/content/nsContextMenu.js +++ b/application/palemoon/base/content/nsContextMenu.js @@ -1394,9 +1394,8 @@ nsContextMenu.prototype = { isDisabledForEvents: function(aNode) { let ownerDoc = aNode.ownerDocument; - return - ownerDoc.defaultView && - ownerDoc.defaultView + return ownerDoc.defaultView && + ownerDoc.defaultView .QueryInterface(Components.interfaces.nsIInterfaceRequestor) .getInterface(Components.interfaces.nsIDOMWindowUtils) .isNodeDisabledForEvents(aNode); |