#9516 closed bug (invalid)
Delegate does not support element or jquery object
Reported by: | 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 12 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
comment:2 Changed 12 years ago by
Component: | unfiled → event |
---|---|
Priority: | undecided → low |
Note: See
TracTickets for help on using
tickets.
The first argument to
.delegate()
is a selector string.http://api.jquery.com/delegate/