fix problem where sel in extension objects was always winding up undefined

This commit is contained in:
Preston Skupinski 2011-07-19 20:33:56 -04:00
parent bbd65b2cb7
commit 593ddc96df
1 changed files with 10 additions and 3 deletions

7
kis.js
View File

@ -69,6 +69,13 @@
// Make a copy before adding properties
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;
return self;