Bug Tracker

Modify

Ticket #9982 (closed bug: wontfix)

Opened 22 months ago

Last modified 22 months ago

.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:
Blocking: Blocked by:

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

comment:1 Changed 22 months ago by rwaldron

  • Priority changed from undecided to low
  • Resolution set to wontfix
  • Status changed from new to closed
  • Component changed from unfiled to event

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

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.