Opened 15 years ago

Closed 15 years ago

Last modified 14 years ago

#2440 closed bug (fixed)

Problem with destroying a draggable

Reported by: jeffkretz Owned by: paul
Priority: major Milestone: 1.5
Component: ui.core Version: 1.2.3
Keywords: destroy Cc:
Blocked by: Blocking:

Description

If you try to destroy a draggable that isn't actually set up as one, an exception is thrown, as the $.data function returns a null object. Easily fixed by modifying line 10 of the ui.draggable.js script:

drag&&drag[options].apply(drag, args);

Note this applies to droppable (and possibly other ui scripts) as well.

Change History (3)

comment:1 Changed 15 years ago by paul

Resolution: fixed
Status: newclosed

Thanks, fixed!

comment:2 Changed 15 years ago by (none)

Milestone: 1.2.4

Milestone 1.2.4 deleted

comment:3 Changed 14 years ago by paul

Milestone: 1.5
Note: See TracTickets for help on using tickets.