1
0
Fork 0
forked from 0x2620/oxjs

fix regressions introduced by garbage collection

This commit is contained in:
rlx 2011-11-05 11:44:31 +00:00
commit 2df5d05980
3 changed files with 11 additions and 7 deletions

View file

@ -376,8 +376,10 @@ Ox.Element = function(options, self) {
};
that.setElement = function($element) {
that.$element.replaceWith(that.$element = $element);
that.$element.data({oxid: that.id});
//$element[0].className = that.$element[0].className;
$element.addClass('OxElement').data({oxid: that.id});
that.$element.replaceWith($element);
that.$element = $element;
that[0] = that.$element[0];
};