Skip to main content

Search and Top Navigation

#2440 closed bug (fixed)

Opened March 01, 2008 08:53PM UTC

Closed March 05, 2008 01:27PM UTC

Last modified February 26, 2009 11:58AM UTC

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.

Attachments (0)
Change History (3)

Changed March 05, 2008 01:27PM UTC by paul comment:1

resolution: → fixed
status: newclosed

Thanks, fixed!

Changed May 24, 2008 03:39AM UTC by comment:2

milestone: 1.2.4

Milestone 1.2.4 deleted

Changed February 26, 2009 11:58AM UTC by paul comment:3

milestone: → 1.5