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