Bug Tracker

Opened 9 years ago

Closed 9 years ago

#13038 closed feature (duplicate)

extend .end()

Reported by: [email protected] Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.8.3
Keywords: Cc:
Blocked by: Blocking:


Hi there,

i was using the .end() function for the first time and noticed, that it only traverses one step back in traversal for example:

    .attr('bar', 'foo')
        .attr('foo', 'bar')
    .log('i am a div')
  .log('i am $(this)')

so, if i like to get back to $(this) i have to write



wouldnt it be nice to have a integer parameter for it :


so the .end() function knows, how many steps it should go up?

or to make some default strings like .end('first') so the .end() function knows, that the very first query is wanted?

what do you think?

Change History (1)

comment:1 Changed 9 years ago by scottgonzalez

Resolution: duplicate
Status: newclosed

Duplicate of #6457.

Note: See TracTickets for help on using tickets.