Fix for 18404; Convert to use imageURL as var rather than function property; r=matt@netscape.com
git-svn-id: svn://10.0.0.236/trunk@56762 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -278,7 +278,7 @@ nsContextMenu.prototype = {
|
||||
},
|
||||
// Save URL of clicked-on image.
|
||||
saveImage : function () {
|
||||
this.savePage( this.imageURL() );
|
||||
this.savePage( this.imageURL );
|
||||
},
|
||||
// Save URL of background image.
|
||||
saveBGImage : function () {
|
||||
@@ -290,7 +290,7 @@ nsContextMenu.prototype = {
|
||||
},
|
||||
// Generate image URL and put it on the clipboard.
|
||||
copyImage : function () {
|
||||
this.copyToClipboard( this.imageURL() );
|
||||
this.copyToClipboard( this.imageURL );
|
||||
},
|
||||
// Utilities
|
||||
// Show/hide one item (specified via name or the item element itself).
|
||||
@@ -367,10 +367,6 @@ nsContextMenu.prototype = {
|
||||
linkURL : function () {
|
||||
return this.link.href;
|
||||
},
|
||||
// Generate fully-qualified URL for clicked-on image.
|
||||
imageURL : function () {
|
||||
return this.target.src;
|
||||
},
|
||||
// Returns "true" if there's no text selected, null otherwise.
|
||||
isNoTextSelected : function ( event ) {
|
||||
// Not implemented so all text-selected-based options are disabled.
|
||||
|
||||
Reference in New Issue
Block a user