Side navigation
#6801 closed bug (duplicate)
Opened July 19, 2010 06:34AM UTC
Closed October 25, 2010 07:22PM UTC
Last modified October 25, 2010 07:22PM UTC
jQuery.event.add() does not check against undefined handlers
Reported by: | hyponiq | Owned by: | |
---|---|---|---|
Priority: | undecided | Milestone: | 1.4.2 |
Component: | event | Version: | 1.4.2 |
Keywords: | event, handler | Cc: | |
Blocked by: | Blocking: |
Description
This is a cross browser issue:
jQuery.event.add() does not check whether 'handler' has been defined. An error is thrown (in (at least) all major browser) when properties of 'handler' are attempted be accessed on an undefined object.
I have, in my own copy of jQuery, fixed the issue (for brevity, irrelevant material replaced with "
"):