Bug Tracker

Ticket #2177 (closed bug: worksforme)

Opened 11 months ago

Last modified 11 months ago

this.remove failed in event

Reported by: igo Assigned to: anonymous
Type: bug Priority: major
Milestone: 1.2.3 Component: core
Version: 1.2.2 Keywords:
Cc: Needs: Patch

Description

Just look on this

$("#test-case-34").slideUp("fast", function() {
	// this cause infinite loop of errors:
	//this.remove();
	// this works:
	//$("#test-case-34").remove();
});

Attachments

jquery_test.html (0.8 kB) - added by davidserduke 11 months ago.
test case

Change History

Changed 11 months ago by davidserduke

test case

Changed 11 months ago by davidserduke

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

I created a test case and it works fine for me. It looks like you are missing the $(this) in your example and it should instead be

$(this).remove()

If I'm missing something please feel free to reopen the bug with additional information.

Note: See TracTickets for help on using tickets.