Bug Tracker

Modify

Ticket #2440 (closed bug: fixed)

Opened 5 years ago

Last modified 5 years ago

Problem with destroying a draggable

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

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

comment:1 Changed 5 years ago by paul

  • Status changed from new to closed
  • Resolution set to fixed

Thanks, fixed!

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.