Fixing js strict warning about assignment to undeclared variable. sr=ben

This commit is contained in:
blakeross%telocity.com 2001-10-01 03:17:18 +00:00
parent af0763709a
commit 7286975525

View File

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