Commit 7c1e7be7 by Thimo Kraemer

Better performance iterating over arrays

parent e408864f
......@@ -395,7 +395,8 @@ kss.each = function(obj, fn, context) {
obj = obj.split(/[\s,;]+/);
}
if (kss.isArrayLike(obj)) {
for (var i=0; i<obj.length; i++) {
var len = obj.length;
for (var i=0; i<len; i++) {
var ret = fn.call(context, obj[i], i);
if (ret !== undefined) {
return ret;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment