public
Created

  • Download Gist
jQuery-each2.js
JavaScript
1 2 3 4 5 6 7 8 9
$.fn.each2 = function(callback)
{
for ( var i = 0; i < this.length; ++i ) {
jQueryObj = this.eq(i)
if( callback.call( jQueryObj, i, jQueryObj) === false){
break;
}
}
};

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.