Bug Tracker

Opened 12 years ago

Closed 11 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 in reply to:  description Changed 12 years ago by fkrueger

I should also add that my droppables are all greedy.

comment:2 Changed 11 years ago by flesler

Resolution: invalid
Status: newclosed

This belongs to jQuery UI. Please repost this to the UI Bug Tracker. Thanks.

Note: See TracTickets for help on using tickets.