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: |
Description
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.
I should also add that my droppables are all greedy.