Skip to content

Instantly share code, notes, and snippets.

@yuanchuan
Created September 17, 2010 05:09
Show Gist options
  • Save yuanchuan/583758 to your computer and use it in GitHub Desktop.
Save yuanchuan/583758 to your computer and use it in GitHub Desktop.
var imageList=(function(){
var _list=[],_head;
$('#imageList li').each(function(){
_list.push($(this));
});
_head=_list[0];
return {
curr : _head,
next : function(){
return this.curr.next().length ? this.curr.next() : _head;
}
};
}());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment