Javascript Event Library Updated

Just a small post to announce that the Javascript Event Library has been updated with a few new methods and smaller size (reduced variable length, removed semicolons).

The updated code can be viewed and downloaded via our Projects page.

If you encounter any bugs or would like to collaborate in its development, please let me know.

  • Rob
    Hey Christian. Thanks for the sweet library. It's nice to have a cross-browser library I can use without having to bring in a heavy framework library. I just have one question: When I try to implement the library, I am getting an error in addListener() ... "Uncaught TypeError: Cannot read property 'addEventListener' of null" (ele is null). Any suggestions?
  • cbiggins
    Hey Rob,

    What browser and version are you getting the error in?
  • Rob
    I'm using Chrome and Firefox on Ubuntu. Both error consoles say ele is null. (I'm passing a valid string) The line is:

    if (typeof ele.addEventListener != 'undefined') {

    Do you have a simple sample that might help?
  • cbiggins
    Hi Rob,

    Mike fixed some bugs a while ago and they weren't committed. I have just committed them to github now, so if you check out the latest version it should be ok.

    http://github.com/cbiggins/event-lib/
blog comments powered by Disqus