forked from 0x2620/oxjs
fix regressions introduced by garbage collection
This commit is contained in:
parent
1d09d19423
commit
2df5d05980
3 changed files with 11 additions and 7 deletions
|
|
@ -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];
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue