Modify ↓
Ticket #361 (closed bug: fixed)
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
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.
