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

8
kis.js
View File

@ -573,6 +573,13 @@
sel = $(sel); sel = $(sel);
} }
if(!sel.length)
{
// sel is a DOM Element
callback(sel);
}
else
{
var len = sel.length; var len = sel.length;
if (len === 0) if (len === 0)
@ -589,6 +596,7 @@
{ {
callback(sel[x]); callback(sel[x]);
} }
}
}, },
addClass: function (sel, c) addClass: function (sel, c)
{ {