incubator-callback-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Anis KADRI <anis.ka...@gmail.com>
Subject Re: why are we monkey patching addEventListener()?
Date Sat, 14 Apr 2012 17:57:07 GMT
I used create/init/dispatchEvent as well in my implementation until I
started working with common js :)

On Sat, Apr 14, 2012 at 10:50 AM, Filip Maj <fil@adobe.com> wrote:

>
> >The question is:
> >
> >    GREAT ODIN'S RAVEN WHY ARE WE DOING THIS?
>
> Because that's how we've done it since day one. That's all I've got.
>
> >
> >Does the following just not work for user-created events?
> >
> >    event = document.createEvent('Events')
> >    event.initEvent(blah)
> >
> >    window.dispatchEvent(event)
> >    // or document.dispatchEvent(event)
>
> Not sure, does it work across all platforms?
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message