Skip to main content

Bug Tracker

Side navigation

#2966 closed bug (invalid)

Opened May 31, 2008 06:35PM UTC

Closed July 01, 2008 03:26AM UTC

"inst" variable can be undefined and cause Droppable to fail

Reported by: fkrueger Owned by:
Priority: major Milestone: 1.3
Component: core Version: 1.2.5
Keywords: Cc:
Blocked by: Blocking:

I have a nested DIV structure where each DIV is draggable and droppable. When dropping a child DIV onto a parent DIV, this line of the "drop" function of ui.droppable:

var inst = $.data(this, 'droppable'); // line 100 of ui.droppable.js

returns an undefined value for inst. This causes the remainder of the function to fail.

As a patch I just put an "if (inst)" around the remainder of the code. This works, and the drop succeeds.

Attachments (0)
Change History (2)

Changed May 31, 2008 06:37PM UTC by fkrueger comment:1

I should also add that my droppables are all greedy.

Changed July 01, 2008 03:26AM UTC by flesler comment:2

resolution: → invalid
status: newclosed

This belongs to jQuery UI.

Please repost this to the UI Bug Tracker.