Modify ↓
Ticket #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: | ||
| Blocking: | Blocked by: |
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
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.

The first argument to .delegate() is a selector string.
http://api.jquery.com/delegate/