prototype: Fix incorrect variable declaration in Event.fire. Closes #10329.

This commit is contained in:
Tobie Langel 2007-12-20 13:10:42 +00:00
parent c691de7810
commit 23f7cb642c
2 changed files with 4 additions and 2 deletions

View File

@ -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]

View File

@ -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";
}