Opened 12 years ago
Closed 12 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 12 years ago by
Component: | unfiled → event |
---|---|
Priority: | undecided → low |
Resolution: | → wontfix |
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
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