Bug Tracker

Ticket #2375 (closed bug: fixed)

Opened 10 months ago

Last modified 9 months ago

error in draggable("destroy")

Reported by: Veryth Assigned to: paul
Type: bug Priority: blocker
Milestone: 1.2.4 Component: ui
Version: 1.2.3 Keywords:
Cc: Needs: Review

Description

Summary:
When calling $(...).draggable("destroy") the following line will throw an error:

ui.draggable.js(77): this.handle.removeMouseInteraction();

The error states that "this.handle" has no properties. Upon inspection it appears to be that "this.handle" is undefined.

Possible Solution:
Looks like it should be referring to "this.options.handle" instead of "this.handle".

I made the change on my local code and it appears to work as expected.

Attachments

Change History

Changed 9 months ago by paul

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

Thanks, fixed!

Note: See TracTickets for help on using tickets.