Bug Tracker

Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#9516 closed bug (invalid)

Delegate does not support element or jquery object

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

Description

Everytime I pass jquery object or element to the first delegate parameter, it gives me an error

Uncaught TypeError: Object [object Object] has no method 'replace'

var $div = $('#innerDiv');

$('#outerDiv').delegate($div, 'click', function () {

});

Change History (2)

comment:1 Changed 9 years ago by dmethvin

Resolution: invalid
Status: newclosed

The first argument to .delegate() is a selector string.

http://api.jquery.com/delegate/

comment:2 Changed 9 years ago by Rick Waldron

Component: unfiledevent
Priority: undecidedlow
Note: See TracTickets for help on using tickets.