Bug Tracker

Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#9325 closed bug (invalid)

REGRESSION: bind with third parameter of false fails in 1.6.x

Reported by: spmhalpin@… Owned by:
Priority: low Milestone: 1.next
Component: event Version: 1.6.1
Keywords: Cc:
Blocked by: Blocking:


Passing "false" as the third parameter to bind will cause the event handler to not to work, or in some cases, cause an error in jQuery 1.6 and 1.6.1. This is a prescribed use case of bind (see: http://api.jquery.com/bind/) and has caused numerous bugs attempting to upgrade several sites; it worked correctly in jQuery 1.5.x.

Test cases have been uploaded to jsFiddle. with 1.6.1: http://jsfiddle.net/sVnK7/ with 1.5.2: http://jsfiddle.net/MhW57/

Change History (2)

comment:1 Changed 5 years ago by timmywil

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

You're using an invalid signature. If the second argument is a function, false should not be passed. See the signatures for http://api.jquery.com/bind.

comment:2 Changed 5 years ago by timmywil

Last edited 5 years ago by timmywil (previous) (diff)
Note: See TracTickets for help on using tickets.