Opened 15 years ago
Closed 15 years ago
#2966 closed bug (invalid)
"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.
Change History (2)
comment:1 Changed 15 years ago by
comment:2 Changed 15 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
This belongs to jQuery UI. Please repost this to the UI Bug Tracker. Thanks.
Note: See
TracTickets for help on using
tickets.
I should also add that my droppables are all greedy.