Bug Tracker

Opened 11 years ago

Closed 11 years ago

Last modified 10 years ago

#12602 closed bug (notabug)

passing data argument to .on() fails (1.8.1 vs. 1.8.2 regression)

Reported by: latchkey Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.8.2
Keywords: Cc:
Blocked by: Blocking:

Description

http://jsfiddle.net/ZzPtf/1/

The only difference between the two blocks is the optional [data] argument to .on()

ie:

formFoo.on('keyup.foo', inputsFoo, checkerFoo); formBar.on('keyup.bar', inputsBar, {'bar':1}, checkerBar); ​ Both work fine with 1.8.1.

Change History (3)

comment:1 Changed 11 years ago by dmethvin

Resolution: notabug
Status: newclosed

There is no signature for .on() that takes a jQuery object as its second argument. http://api.jquery.com/on

Please ask for help on the forum for the followup "Then why did this work before?", or simply use a debugger to see what it is doing.

comment:2 Changed 11 years ago by Rick Waldron

Blitzed.

FWIW, this is how it's used http://jsfiddle.net/rwaldron/ssYk4/

comment:3 Changed 10 years ago by latchkey

ok, totally valid. ... and it is so hard to add a signature for that because?

heck, just do $.selector

Version 0, edited 10 years ago by latchkey (next)
Note: See TracTickets for help on using tickets.