make .appendTo() work
This commit is contained in:
parent
e8347aeabc
commit
11d46c4d17
2 changed files with 5 additions and 0 deletions
|
@ -70,6 +70,7 @@ Ox.Element = function(options, self) {
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
// create event handler
|
// create event handler
|
||||||
|
// (this can be passed as part of self)
|
||||||
if (!self.$eventHandler) {
|
if (!self.$eventHandler) {
|
||||||
self.$eventHandler = $('<div>');
|
self.$eventHandler = $('<div>');
|
||||||
}
|
}
|
||||||
|
|
|
@ -21,6 +21,10 @@ Ox.JQueryElement = function($element) {
|
||||||
that.$element = $element.data({
|
that.$element = $element.data({
|
||||||
oxid: that.id
|
oxid: that.id
|
||||||
});
|
});
|
||||||
|
// FIXME: the following two lines should make it possible to do
|
||||||
|
// $('<div>').appendTo($element) ... check if it works, then replace all
|
||||||
|
that[0] = that.$element[0];
|
||||||
|
that.length = 1;
|
||||||
Ox.UI.elements[that.id] = that;
|
Ox.UI.elements[that.id] = that;
|
||||||
return that;
|
return that;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue