$.fn.eachQ = (function() {
var $this = $([1]);
return function(_func) {
var i = -1,
len = this.length,
$el;
try {
while (
++i < len &&
($el = $this[0] = this[i]) &&
_func.call($this, i, $el) !== false
);
} catch (e) {
delete $this[0];
throw e;
}
delete $this[0];
return this;
};
}());
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.