Skip to main content

Bug Tracker

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 () {

});
Attachments (0)
Change History (2)

Changed June 05, 2011 01:48PM UTC by dmethvin comment:1

resolution: → invalid
status: newclosed

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

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

Changed June 05, 2011 03:28PM UTC by rwaldron comment:2

component: unfiledevent
priority: undecidedlow