Skip to content

Instantly share code, notes, and snippets.

@ericf
Created March 9, 2009 17:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ericf/76385 to your computer and use it in GitHub Desktop.
Save ericf/76385 to your computer and use it in GitHub Desktop.
var lis = Y.all('#test li'), index = 0;
lis.each(function(li){
Y.log( index );
Y.log( lis.item(index).compareTo(li) ); // true
index ++;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment