mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-02 15:15:23 +00:00
Bug 228536 Fix JS strict warning undefined property this.onStandaloneImage r=timeless sr=bz
This commit is contained in:
parent
a8cf0737c3
commit
0b170dc7e4
@ -62,6 +62,11 @@ nsContextMenu.prototype = {
|
||||
},
|
||||
// Initialize context menu.
|
||||
initMenu : function ( popup ) {
|
||||
const xulNS = "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul";
|
||||
if ( document.popupNode.namespaceURI == xulNS ) {
|
||||
this.shouldDisplay = false;
|
||||
return;
|
||||
}
|
||||
// Save menu.
|
||||
this.menu = popup;
|
||||
|
||||
@ -226,11 +231,6 @@ nsContextMenu.prototype = {
|
||||
},
|
||||
// Set various context menu attributes based on the state of the world.
|
||||
setTarget : function ( node ) {
|
||||
const xulNS = "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul";
|
||||
if ( node.namespaceURI == xulNS ) {
|
||||
this.shouldDisplay = false;
|
||||
return;
|
||||
}
|
||||
// Initialize contextual info.
|
||||
this.onImage = false;
|
||||
this.onStandaloneImage = false;
|
||||
|
Loading…
Reference in New Issue
Block a user