Ticket #4087 (closed bug: fixed)

Opened 6 years ago

Last modified 6 years ago

Removing ui.draggable immediately after the drop callback raises an error.

Reported by: bohdan.ganicky Owned by:
Priority: critical Milestone: 1.7
Component: ui.draggable Version: 1.6rc6
Keywords: Cc:
Blocking: Blocked by:

Description (last modified by rdworth) (diff)

The code is simple:

$("#draggable").draggable();
$("#droppable").droppable({
	drop: function(event, ui) {
		ui.draggable.remove();
	}
});

Firebug output:

$(this).data("draggable") is undefined
http://localhost/Dev/jquery-ui/ui/ui.draggable.js
Line 570

testcase here:  http://jquery-ui.googlecode.com/svn/trunk/tests/visual/droppable/droppable_ticket_4087.html

Change History

comment:1 Changed 6 years ago by bohdan.ganicky

  • Component changed from ui.droppable to ui.draggable

comment:2 Changed 6 years ago by rdworth

  • Description modified (diff)

comment:3 Changed 6 years ago by sukerman

I'm seeing the same thing, but also seems jammed in a loop my firefox error console instantly fills to capacity with this error repeating and CPU usage goes to 50% hanging firefox. I can provide test case but my case is quite complex to setup and I guess its the same problem.

comment:4 Changed 6 years ago by paul

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

Fixed in r2061.

Note: See TracTickets for help on using tickets.