jQuery: The Write Less, Do More JavaScript Library

Ticket #2440 (closed bug: fixed)

Opened 6 months ago

Last modified 6 months ago

Problem with destroying a draggable

Reported by: jeffkretz Assigned to: paul
Type: bug Priority: major
Milestone: 1.2.4 Component: ui
Version: 1.2.3 Keywords: destroy
Cc: Needs: Review

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

Change History

Changed 6 months ago by paul

  • status changed from new to closed
  • resolution set to fixed

Thanks, fixed!

Note: See TracTickets for help on using tickets.