mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-18 14:56:07 +00:00
Fixing js strict warning about assignment to undeclared variable. sr=ben
This commit is contained in:
parent
af0763709a
commit
7286975525
@ -625,7 +625,7 @@ nsContextMenu.prototype = {
|
||||
} else if ( node.nodeType == Node.ELEMENT_NODE
|
||||
&& node.localName.toUpperCase() == "IMG" ) {
|
||||
// If it has an alt= attribute, use that.
|
||||
altText = node.getAttribute( "alt" );
|
||||
var altText = node.getAttribute( "alt" );
|
||||
if ( altText && altText != "" ) {
|
||||
text = altText;
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user