Skip to main content

Bug Tracker

Side navigation

#13038 closed feature (duplicate)

Opened December 12, 2012 11:45AM UTC

Closed December 12, 2012 01:13PM UTC

extend .end()

Reported by: 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?

Attachments (0)
Change History (1)

Changed December 12, 2012 01:13PM UTC by scottgonzalez comment:1

resolution: → duplicate
status: newclosed

Duplicate of #6457.