mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-21 22:57:31 +09:00
Suppress false-positive warning about unreachable code after return in nsContextMenu.js
This commit is contained in:
parent
3bbdbbbe4a
commit
fa15a8282e
1 changed files with 2 additions and 3 deletions
|
|
@ -1394,9 +1394,8 @@ nsContextMenu.prototype = {
|
||||||
|
|
||||||
isDisabledForEvents: function(aNode) {
|
isDisabledForEvents: function(aNode) {
|
||||||
let ownerDoc = aNode.ownerDocument;
|
let ownerDoc = aNode.ownerDocument;
|
||||||
return
|
return ownerDoc.defaultView &&
|
||||||
ownerDoc.defaultView &&
|
ownerDoc.defaultView
|
||||||
ownerDoc.defaultView
|
|
||||||
.QueryInterface(Components.interfaces.nsIInterfaceRequestor)
|
.QueryInterface(Components.interfaces.nsIInterfaceRequestor)
|
||||||
.getInterface(Components.interfaces.nsIDOMWindowUtils)
|
.getInterface(Components.interfaces.nsIDOMWindowUtils)
|
||||||
.isNodeDisabledForEvents(aNode);
|
.isNodeDisabledForEvents(aNode);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue