Side navigation
#9516 closed bug (invalid)
Opened June 05, 2011 04:20AM UTC
Closed June 05, 2011 01:48PM UTC
Last modified June 05, 2011 03:28PM UTC
Delegate does not support element or jquery object
Reported by: | vdyy4fun@gmail.com | 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 () { });
The first argument to
.delegate()
is a selector string.http://api.jquery.com/delegate/