Skip to main content

Bug Tracker

Side navigation

#9982 closed bug (wontfix)

Opened August 04, 2011 09:58PM UTC

Closed August 05, 2011 12:04AM UTC

.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

Attachments (0)
Change History (1)

Changed August 05, 2011 12:04AM UTC by rwaldron comment:1

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