Help me understand event handling in different browsers
December 6, 2012 6:07 PM Subscribe
I'm working with some hastily-written Backbone.js code
that's supposed to catch clicks from a form, and then respond to those clicks. But the event handling isn't working across different browsers.
The key line of contention is this:
eventType = event.target.type;
Firefox says "event" isn't defined. As a newbie, I'm confused about how to make it see this event, which is bound to actions elsewhere in the code (in the View). Is there some standard way of doing this cross-browser, with jQuery, to make FF and IE alike deal well with this?
Any help much appreciated.