This commit is contained in:
Nate B 2011-06-30 18:15:19 -06:00
parent 2c307ddb3b
commit 9231614a5f

32
kis.js
View File

@ -572,22 +572,30 @@
{
sel = $(sel);
}
var len = sel.length;
if (len === 0)
if(!sel.length)
{
return;
// sel is a DOM Element
callback(sel);
}
if (len === 1)
else
{
return callback(sel);
}
var len = sel.length;
for (var x = 0; x < sel.length; x++)
{
callback(sel[x]);
if (len === 0)
{
return;
}
if (len === 1)
{
return callback(sel);
}
for (var x = 0; x < sel.length; x++)
{
callback(sel[x]);
}
}
},
addClass: function (sel, c)