On Monday, October 31, 2011 8:38:04 PM UTC-4, Jake Verbaten wrote:
>
>
>
> el.dispatchEvent works in all modern browsers, el.fireEvent works in IE8.
> You need to fire an event object (document.createEventObject) in IE8 and
> you need to fire an Event (document.createEvent("Event")) in modern
> browsers.
>
Oh, that's for explicitly firing events. I've never used that before. It
makes sense now, that's how you can handle bubbled/captured events.
>
>
>>
>>> You can also look at my
>>> EventTarget<http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#interface-eventtarget>
>>>
>>> Implementation<https://github.com/Raynos/DOM-shim/tree/master/src/interfaces/EventTarget/props>
>>> **for IE8.
>>>
>>
>> Thanks, but I'd rather not have to extract everything from your DOMShim
>> framework. My goal here is only to shim IE 8
>>
>
> In this case the EventTarget only shims IE8. DOM-shim is IE8+ and
> EventTarget works in all other browsers. Nor do I imply you should copy or
> take the code. It's merely a piece of reference code.
>
> Right, I guess I took that the wrong way before.
Well, here's the lightly revised event module:
https://github.com/aviat4ion/kis-js/blob/master/src/modules/event.js
I've also got something weird happening with some of my unit tests. There
is one test that likes passing/failing every other time you load it in
Firefox/Chrome, but passes every time you run it individually.
http://dev.timshomepage.net/kis-js/tests/
--
To view archived discussions from the original JSMentors Mailman list:
http://www.mail-archive.com/[email protected]/
To search via a non-Google archive, visit here:
http://www.mail-archive.com/[email protected]/
To unsubscribe from this group, send email to
[email protected]