Skip to main content

Bug Tracker

Side navigation

#11154 closed bug (wontfix)

Opened January 11, 2012 03:36AM UTC

Closed January 11, 2012 03:46AM UTC

Last modified January 11, 2012 10:57PM UTC

.each() callback.

Reported by: brunolazzaro Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.7.1
Keywords: Cc:
Blocked by: Blocking:

It would be great if .each() had a callback function that fires when all nodes have been traversed.

Something like:

$('div').each(fn, callback)

$('a').each(function(){ code here for manipulating the links }, function(){ i'm done, fire this function. })

Attachments (0)
Change History (2)

Changed January 11, 2012 03:46AM UTC by rwaldron comment:1

resolution: → wontfix
status: newclosed

Feature creep. Can easily be inlined:

Changed January 11, 2012 10:57PM UTC by gnarf comment:2

I'd also like to point out that

is synchronous, so this:

$('a').each(function( index, element ) {
  console.log( "Index", index );
console.log( "I'm Done" );

Works just as well...