Fixing js strict warning about assignment to undeclared variable. sr=ben
git-svn-id: svn://10.0.0.236/trunk@205467 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
c80672e223
commit
52c8b5eb56
@ -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