forked from 0x2620/oxjs
avoid leaks by adding custom empty/remove/replaceWith functions to Ox.Element
This commit is contained in:
parent
90bc4fb59e
commit
7848277593
4 changed files with 41 additions and 14 deletions
|
|
@ -19,7 +19,7 @@ Ox.JQueryElement = function($element) {
|
|||
that.ox = Ox.VERSION;
|
||||
//@ $element <object> The jQuery-wrapped DOM element
|
||||
that.$element = $element.data({
|
||||
oxid: that.id
|
||||
oxid: that.id // FIXME: Can this be just "id"?
|
||||
});
|
||||
// FIXME: the following two lines should make it possible to do
|
||||
// $('<div>').appendTo($element) ... check if it works, then replace all
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue