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:
law%netscape.com
2000-01-04 22:37:14 +00:00
parent c5b6a46e44
commit 62221242b1

View File

@@ -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.