mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-08-17 03:51:21 +02:00
Moved et2 core interfaces to own file; implemented Class.free which cares about calling 'destroy', removing all references the object may hold and rendering the object unusable after 'free' has been called; added 'getMem_freeMem_trace' which helps hunting down memory leaks with objects derriving from Class; added first implementation of the nextmatch widget - currently does nothing else but rendering the header and clicking on the nextmatch_sortheader labels
This commit is contained in:
@ -220,7 +220,7 @@ var et2_widget = Class.extend({
|
||||
// Call the destructor of all children
|
||||
for (var i = this._children.length - 1; i >= 0; i--)
|
||||
{
|
||||
this._children[i].destroy();
|
||||
this._children[i].free();
|
||||
}
|
||||
|
||||
// Remove this element from the parent
|
||||
@ -322,7 +322,13 @@ var et2_widget = Class.extend({
|
||||
// Check whether the node is one of the supported widget classes.
|
||||
if (this.isOfSupportedWidgetClass(_node))
|
||||
{
|
||||
_node.parent = this;
|
||||
// Remove the node from its original parent
|
||||
if (_node._parent)
|
||||
{
|
||||
_node._parent.removeChild(_node);
|
||||
}
|
||||
|
||||
_node._parent = this;
|
||||
this._children.splice(_idx, 0, _node);
|
||||
}
|
||||
else
|
||||
|
Reference in New Issue
Block a user