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

This commit is contained in:
blakeross%telocity.com 2006-07-29 05:37:43 +00:00
Родитель 92ce4a1b2e
Коммит 7a1b49feaa
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -625,7 +625,7 @@ nsContextMenu.prototype = {
} else if ( node.nodeType == Node.ELEMENT_NODE } else if ( node.nodeType == Node.ELEMENT_NODE
&& node.localName.toUpperCase() == "IMG" ) { && node.localName.toUpperCase() == "IMG" ) {
// If it has an alt= attribute, use that. // If it has an alt= attribute, use that.
altText = node.getAttribute( "alt" ); var altText = node.getAttribute( "alt" );
if ( altText && altText != "" ) { if ( altText && altText != "" ) {
text = altText; text = altText;
break; break;