Bug Tracker

Opened 8 years ago

Closed 8 years ago

#9982 closed bug (wontfix)

.bind() breaks with null or undefined as argument 3

Reported by: geoffreyk Owned by:
Priority: low Milestone: None
Component: event Version: 1.6.2
Keywords: Cc:
Blocked by: Blocking:

Description

when argument #3 of .bind() is null or undefined, .bind() fails. This was not a problem in 1.5.2

Tested in FF5, FF3.6, and chrome 12

repro with: http://jsfiddle.net/geoffreyk/Pn66T/ click on the three test cases. with 1.5.2, all three divs trigger an alert. with 1.6.2, only the first div triggers an alert. the second two have null and undefined as their 3rd argument in .bind()

Not a big deal, but it is a break from earlier jQuery versions

Change History (1)

comment:1 Changed 8 years ago by Rick Waldron

Component: unfiledevent
Priority: undecidedlow
Resolution: wontfix
Status: newclosed

jQuery can't get into the business of supporting every edge case just because they happened to work in a previous version. The examples you've given are not supported syntax and never were - if they ever worked before it was by sheer coincidence only

Note: See TracTickets for help on using tickets.