fix problem where sel in extension objects was always winding up undefined
This commit is contained in:
parent
bbd65b2cb7
commit
593ddc96df
13
kis.js
13
kis.js
@ -65,12 +65,19 @@
|
|||||||
{
|
{
|
||||||
sel = $(s);// || document.documentElement;
|
sel = $(s);// || document.documentElement;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Make a copy before adding properties
|
// Make a copy before adding properties
|
||||||
var self = dcopy($_);
|
var self = dcopy($_);
|
||||||
|
|
||||||
|
// Give sel to each extension.
|
||||||
|
for(var i in self)
|
||||||
|
{
|
||||||
|
if(typeof self[i] === "object")
|
||||||
|
self[i].el = sel;
|
||||||
|
}
|
||||||
|
|
||||||
self.el = sel;
|
self.el = sel;
|
||||||
|
|
||||||
return self;
|
return self;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user