[XForms] Fix JS strict errors with select/select1. Bug 339079, r=smaug+doronr

This commit is contained in:
allan%beaufour.dk 2006-05-25 07:45:34 +00:00
Родитель 4eec741d5b
Коммит 0107914f15
2 изменённых файлов: 4 добавлений и 4 удалений

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

@ -106,7 +106,7 @@
<body> <body>
<![CDATA[ <![CDATA[
if (this._refreshing) if (this._refreshing)
return; return true;
this.control.readonly = this.accessors.isReadonly(); this.control.readonly = this.accessors.isReadonly();
@ -662,7 +662,7 @@
var boundNode = this.accessors.getBoundNode(); var boundNode = this.accessors.getBoundNode();
if (!boundNode) { if (!boundNode) {
this._dispatchSelectEvents(); this._dispatchSelectEvents();
return; return null;
} }
// we are cloning boundNode to create a node that we will return. // we are cloning boundNode to create a node that we will return.
@ -675,7 +675,7 @@
contentEnvelope = boundNode.cloneNode(false); contentEnvelope = boundNode.cloneNode(false);
if (!contentEnvelope) { if (!contentEnvelope) {
this._dispatchSelectEvents(); this._dispatchSelectEvents();
return; return null;
} }
var selectedValues = ""; var selectedValues = "";

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

@ -991,7 +991,7 @@
var boundNode = this.accessors.getBoundNode(); var boundNode = this.accessors.getBoundNode();
if (!boundNode) { if (!boundNode) {
return; return null;
} }
var contentEnvelope = boundNode.cloneNode(false); var contentEnvelope = boundNode.cloneNode(false);