зеркало из https://github.com/mozilla/pjs.git
Bug 365773: radiogroup.selectedItem = null fails if group is focused, patch by Wladimir Palant <trev@gtchat.de>, r=neil
This commit is contained in:
Родитель
d15c593319
Коммит
60754c67a9
|
@ -123,9 +123,12 @@
|
|||
|
||||
if (!alreadySelected && focused) {
|
||||
// Only report if actual change
|
||||
var myEvent = document.createEvent("Events");
|
||||
myEvent.initEvent("RadioStateChange", true, true);
|
||||
val.dispatchEvent(myEvent);
|
||||
var myEvent;
|
||||
if (val) {
|
||||
myEvent = document.createEvent("Events");
|
||||
myEvent.initEvent("RadioStateChange", true, true);
|
||||
val.dispatchEvent(myEvent);
|
||||
}
|
||||
|
||||
if (previousItem) {
|
||||
myEvent = document.createEvent("Events");
|
||||
|
|
|
@ -123,9 +123,12 @@
|
|||
|
||||
if (!alreadySelected && focused) {
|
||||
// Only report if actual change
|
||||
var myEvent = document.createEvent("Events");
|
||||
myEvent.initEvent("RadioStateChange", true, true);
|
||||
val.dispatchEvent(myEvent);
|
||||
var myEvent;
|
||||
if (val) {
|
||||
myEvent = document.createEvent("Events");
|
||||
myEvent.initEvent("RadioStateChange", true, true);
|
||||
val.dispatchEvent(myEvent);
|
||||
}
|
||||
|
||||
if (previousItem) {
|
||||
myEvent = document.createEvent("Events");
|
||||
|
|
Загрузка…
Ссылка в новой задаче