Commit 7c1e7be7 authored by Thimo Kraemer's avatar 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 =, obj[i], i);
if (ret !== undefined) {
return ret;
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment