1
0
Fork 0
forked from 0x2620/oxjs

improve removal of elements

This commit is contained in:
rlx 2011-11-01 23:14:29 +00:00
commit 7761b9dea4
3 changed files with 32 additions and 8 deletions

View file

@ -49,8 +49,8 @@ Ox.forEach($('<div>'), function(val, key) {
// if the $element of an ox object was returned
// then return the ox object instead
// so that we can do oxObj.jqFn().oxFn()
return ret && ret.jquery && Ox.UI.elements[id = ret.data('oxid')] ?
Ox.UI.elements[id] : ret;
return ret && ret.jquery && Ox.UI.elements[id = ret.data('oxid')]
? Ox.UI.elements[id] : ret;
};
}
}, true);