prototype: Fix incorrect variable declaration in Event.fire. Closes #10329.
This commit is contained in:
parent
c691de7810
commit
23f7cb642c
|
@ -1,4 +1,5 @@
|
|||
*SVN*
|
||||
* Fix incorrect variable declaration in Event.fire. Closes #10329. [rubley]
|
||||
|
||||
* Fix the way Selector handles [pseudoclass + combinator] with no space in between. Closes #9696. [kangax, fearphage, Andrew Dupont]
|
||||
|
||||
|
|
|
@ -242,11 +242,12 @@ Object.extend(Event, (function() {
|
|||
if (element == document && document.createEvent && !element.dispatchEvent)
|
||||
element = document.documentElement;
|
||||
|
||||
var event;
|
||||
if (document.createEvent) {
|
||||
var event = document.createEvent("HTMLEvents");
|
||||
event = document.createEvent("HTMLEvents");
|
||||
event.initEvent("dataavailable", true, true);
|
||||
} else {
|
||||
var event = document.createEventObject();
|
||||
event = document.createEventObject();
|
||||
event.eventType = "ondataavailable";
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue