This commit is contained in:
Nate B 2011-07-13 22:41:34 -06:00
parent 4c1bfea9e9
commit f7bf984d68

11
kis.js
View File

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