The EventTarget API is neat. Some things I wish it had tho: 1. .once() listeners for one-off actions 2. prependListener() (e.g. move to the start of the listener queue) 3. have a .listenAll() method to catch all events But I guess we can create thosehttps://developer.mozilla.org/en-US/docs/Web/API/EventTarget …
Ayee, so think I found a bug here: if you try and extend window.EventTarget in the latest Chrome Unstable it throws. Pretty sure that's not the way it was intended haha.pic.twitter.com/Kw9ziA4yIT
-
-
can you properly extend EventTarget anyways? I always got the illegal invocation or illegal constructor error :(
-
New feature in latest Chrome! They updated the spec so you should be able to :D
- 1 more reply
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.