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:
blakeross%telocity.com 2006-07-29 05:37:43 +00:00
parent c80672e223
commit 52c8b5eb56

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;