Opened 14 years ago

Closed 14 years ago

#3955 closed bug (fixed)

droppable: accept function - 'this' context should be DOMElement, not jQuery object

Reported by: rdworth Owned by:
Priority: blocker Milestone: 1.7
Component: ui.droppable Version: 1.6rc5
Keywords: Cc:
Blocked by: Blocking:


When you provide a callback function to the droppable accept option (as opposed to a selector), like so


accept: function(draggable) {




'this' needs to be a DOMElement (in this case #droppable). It is currently a jQuery Object containing that DOMElement. This is in keeping with the jQuery and jQuery UI pattern of always having the context of a callback function be a DOMElement, the same to which the event was bound.

Change History (1)

comment:1 Changed 14 years ago by paul

Resolution: fixed
Status: newclosed

Fixed in r1810.

Note: See TracTickets for help on using tickets.