Now In JavaScript Too
Correct, I have implemented, written, and re-writtem this shit so many times that I have decided to "unofficialize" the already, well described, interface.So, here the repository, something you can install in node via
npm install event-target
and checking examples on how to use it. Cool? I hope so :-)Only thing that does not make much sense in a non DOM environment is the capture extra argument, something ignored from 90% of the web, something that can be really useful with the DOM but I could not think about any concrete utility in a pure JS world way. Cool thing is: anyone can extend, wrap, or improve, this
EventTarget
library: enjoy!
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.