madrobby/zepto — pull request #632 by mitio (2012-11-05 14:59:32+00:00)
Title: Stop iteration in $.fn.each() when the callback returns false

As per the documentation, the iteration in `$.fn.each()` should stop when the iteration callback returns `fasle`. This way it will also conform to the jQuery API.

Currently, `$.fn.each` delegates to `Array.prototype.forEach`. I didn't find a way to stop the iteration when using `forEach`, thus I had to look for another solution. I wanted to keep the iteration in native code and found out that `Array.prototype.every` might do the job.

I didn't expose this in the public interface of Zepto and thus the somewhat odd `emptyArray.every.call` pattern.

Any notes on the implementation are welcome.