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:
Andreas Stöckel
2011-08-25 13:35:53 +00:00
parent e6a34adfe7
commit ec5b162bfa
24 changed files with 1432 additions and 86 deletions

View File

@ -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