Update of /cvsroot/qooxdoo/qooxdoo/source/script/core
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13344/source/script/core
Added Files:
Tag: renderer
QxObjectCore.js
Log Message:
Improved code and structure of QxObject, some cleanups
--- NEW FILE: QxObjectCore.js ---
/* ************************************************************************
qooxdoo - the new era of web interface development
Version:
$Id: QxObjectCore.js,v 1.1.2.1 2006/01/23 12:44:05 wpbasti Exp $
Copyright:
(C) 2004-2005 by Schlund + Partner AG, Germany
All rights reserved
License:
LGPL 2.1: http://creativecommons.org/licenses/LGPL/2.1/
Internet:
* http://qooxdoo.oss.schlund.de
Authors:
* Sebastian Werner (wpbasti)
<sebastian dot werner at 1und1 dot de>
* Andreas Ecker (aecker)
<andreas dot ecker at 1und1 dot de>
************************************************************************ */
/* ************************************************************************
#package(core)
#require(QxObject)
************************************************************************ */
var QxObjectCounter = 0;
var QxObjectDataBase = [];
QxObject.toHashCode = function(o)
{
if(o._hashCode != null) {
return o._hashCode;
};
return o._hashCode = QxObjectCounter++;
};
QxObject.dispose = function()
{
for (var i=QxObjectDataBase.length-1; i>=0; i--)
{
if (typeof QxObjectDataBase[i] != QxConst.TYPEOF_UNDEFINED)
{
QxObjectDataBase[i].dispose();
if (typeof QxObjectDataBase == QxConst.TYPEOF_UNDEFINED) {
break;
};
delete QxObjectDataBase[i];
};
};
delete QxObjectDataBase;
};
QxObject.addProperty({ name : "enabled", type : QxConst.TYPEOF_BOOLEAN, defaultValue : true, getAlias : "isEnabled" });
QxObject.DEBUG_MSG_BEFORE = "[HASHCODE:";
QxObject.DEBUG_MSG_AFTER = "]";
QxObject.DEBUG_FUNCERRORPRE = "Failed to execute \"";
QxObject.DEBUG_FUNCERRORPOST = "()\": ";
|