This commit is contained in:
Nate B 2011-07-13 22:41:34 -06:00
parent 4c1bfea9e9
commit f7bf984d68
1 changed files with 8 additions and 5 deletions

13
kis.js
View File

@ -64,20 +64,23 @@
*/
$_ = function(sel)
{
// Make a copy before adding properties
var self = dcopy($_);
//Get the DOM objects from the selector
sel = $(sel);
//Have window be default selector, just in case
if(typeof sel === "undefined")
{
sel = (typeof $_.el !== "undefined")
? $_.el
sel = (typeof self.el !== "undefined")
? self.el
: window;
}
$_.el = sel;
self.el = sel;
return dcopy($_);
return self;
};
/**