Create a gist now

Instantly share code, notes, and snippets.

$.fn.each2 = function(callback)
{
for ( var i = 0; i < this.length; ++i ) {
jQueryObj = this.eq(i)
if( callback.call( jQueryObj, i, jQueryObj) === false){
break;
}
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment