Bug Tracker

Opened 12 years ago

Closed 12 years ago

#2177 closed bug (worksforme)

this.remove failed in event

Reported by: igo Owned by:
Priority: major Milestone: 1.2.3
Component: core Version: 1.2.2
Keywords: Cc:
Blocked by: Blocking:

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 (1)

jquery_test.html (784 bytes) - added by davidserduke 12 years ago.
test case

Download all attachments as: .zip

Change History (2)

Changed 12 years ago by davidserduke

Attachment: jquery_test.html added

test case

comment:1 Changed 12 years ago by davidserduke

Resolution: worksforme
Status: newclosed

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.