зеркало из https://github.com/mozilla/gecko-dev.git
[XForms] Fix JS strict errors with select/select1. Bug 339079, r=smaug+doronr
This commit is contained in:
Родитель
4eec741d5b
Коммит
0107914f15
|
@ -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);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче