Side navigation
#9325 closed bug (invalid)
Opened May 17, 2011 10:55PM UTC
Closed May 17, 2011 11:04PM UTC
Last modified May 17, 2011 11:05PM UTC
REGRESSION: bind with third parameter of false fails in 1.6.x
Reported by: | spmhalpin@gmail.com | Owned by: | |
---|---|---|---|
Priority: | low | Milestone: | 1.next |
Component: | event | Version: | 1.6.1 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
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/
Attachments (0)
Change History (2)
Changed May 17, 2011 11:04PM UTC by comment:1
component: | unfiled → event |
---|---|
priority: | undecided → low |
resolution: | → invalid |
status: | new → closed |
Changed May 17, 2011 11:05PM UTC by comment:2
_comment0: | An example: http://jsfiddle.net/timmywil/sVnK7/2/ → 1305673550971237 |
---|
An example: http://jsfiddle.net/timmywil/sVnK7/4/
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.