Bug Tracker

Modify

Ticket #361 (closed bug: fixed)

Opened 7 years ago

Last modified 6 years ago

Calling end() where not suitable throws an error

Reported by: klaus.hartl@… Owned by:
Priority: minor Milestone:
Component: core Version:
Keywords: end stack Cc:
Blocking: Blocked by:

Description

Consider this:

var jqDiv = $('div').find('a');
jqDiv.end().end(); // throws error

If end() is called to often, an error is thrown: "this.stack has no properties"

I think that should degrade gracefully.

Change History

comment:1 Changed 7 years ago by anonymous

  • Cc end stack removed
  • Keywords end stack added

comment:2 Changed 7 years ago by joern

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

Fixed in SVN :-)

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.