зеркало из https://github.com/mozilla/gecko-dev.git
Fixing js strict warning about assignment to undeclared variable. sr=ben
This commit is contained in:
Родитель
92ce4a1b2e
Коммит
7a1b49feaa
|
@ -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;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче