Bug Tracker

Modify

Ticket #2177 (closed bug: worksforme)

Opened 5 years ago

Last modified 5 years ago

this.remove failed in event

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

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 Download (784 bytes) - added by davidserduke 5 years ago.
test case

Change History

Changed 5 years ago by davidserduke

test case

comment:1 Changed 5 years 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.

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.