Fix issue #5
This commit is contained in:
parent
4c1bfea9e9
commit
f7bf984d68
11
kis.js
11
kis.js
@ -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;
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user