Update of /cvsroot/qooxdoo/qooxdoo/source/script/core
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17259/source/script/core
Modified Files:
Tag: renderer
QxApplication.js QxExtend.js QxMain.js QxObject.js
Log Message:
Improved overall performance
Index: QxApplication.js
===================================================================
RCS file: /cvsroot/qooxdoo/qooxdoo/source/script/core/QxApplication.js,v
retrieving revision 1.2.2.55
retrieving revision 1.2.2.56
diff -C2 -d -r1.2.2.55 -r1.2.2.56
*** QxApplication.js 13 Jan 2006 10:50:26 -0000 1.2.2.55
--- QxApplication.js 16 Jan 2006 12:55:57 -0000 1.2.2.56
***************
*** 89,92 ****
--- 89,93 ----
QxApplication.MSG_INSTANCES = "Created Instances: ";
QxApplication.MSG_CLASSES = "Available Classes: ";
+ QxApplication.MSG_PROPERTIES = "Property Count: ";
QxApplication.MSG_CLIENTINFO = "Client Detection: ";
QxApplication.MSG_STRICTMODE = "Document is not in Quirksmode! This is needed in Internet Explorer <= 6 to let qooxdoo render correctly.";
***************
*** 126,129 ****
--- 127,133 ----
this._printClassInfo();
+ // Output the number existing properties
+ this._printPropertyInfo();
+
// Print short client detection info
this._printClientInfo();
***************
*** 223,226 ****
--- 227,234 ----
};
+ proto._printPropertyInfo = function() {
+ this.info(QxApplication.MSG_PROPERTIES + QxPropertyCounter);
+ };
+
proto._printClientInfo = function()
{
Index: QxExtend.js
===================================================================
RCS file: /cvsroot/qooxdoo/qooxdoo/source/script/core/QxExtend.js,v
retrieving revision 1.7.2.97
retrieving revision 1.7.2.98
diff -C2 -d -r1.7.2.97 -r1.7.2.98
*** QxExtend.js 16 Jan 2006 11:55:06 -0000 1.7.2.97
--- QxExtend.js 16 Jan 2006 12:55:57 -0000 1.7.2.98
***************
*** 368,371 ****
--- 368,378 ----
var modifyKey = QxConst.INTERNAL_MODIFY + p.implMethod;
var checkKey = QxConst.INTERNAL_CHECK + p.implMethod;
+
+ if (!QxSetter[p.name])
+ {
+ QxSetter[p.name] = QxConst.INTERNAL_SET + p.method;
+ QxGetter[p.name] = QxConst.INTERNAL_GET + p.method;
+ QxResetter[p.name] = QxConst.INTERNAL_RESET + p.method;
+ };
// unit detection support
***************
*** 545,548 ****
--- 552,557 ----
Function.prototype.addProperty = function(p)
{
+ QxPropertyCounter++;
+
this._createProperty(p);
Index: QxMain.js
===================================================================
RCS file: /cvsroot/qooxdoo/qooxdoo/source/script/core/Attic/QxMain.js,v
retrieving revision 1.1.2.6
retrieving revision 1.1.2.7
diff -C2 -d -r1.1.2.6 -r1.1.2.7
*** QxMain.js 13 Jan 2006 10:50:26 -0000 1.1.2.6
--- QxMain.js 16 Jan 2006 12:55:58 -0000 1.1.2.7
***************
*** 30,33 ****
**************************************************************************** */
! QxVersion = "0.2_beta-4";
! QxClasses = {};
--- 30,38 ----
**************************************************************************** */
! var QxVersion = "0.2_beta-4";
! var QxPropertyCounter = 0;
! var QxClasses = {};
!
! var QxSetter = {};
! var QxGetter = {};
! var QxResetter = {};
Index: QxObject.js
===================================================================
RCS file: /cvsroot/qooxdoo/qooxdoo/source/script/core/QxObject.js,v
retrieving revision 1.2.2.32
retrieving revision 1.2.2.33
diff -C2 -d -r1.2.2.32 -r1.2.2.33
*** QxObject.js 13 Jan 2006 10:50:26 -0000 1.2.2.32
--- QxObject.js 16 Jan 2006 12:55:58 -0000 1.2.2.33
***************
*** 185,193 ****
try
{
! this[QxConst.INTERNAL_SET + prop.toFirstUp()](propertyValues[prop]);
}
catch(ex)
{
! throw new Error("Setter of property " + prop + " returned with an error: " + ex);
};
};
--- 185,193 ----
try
{
! this[QxSetter[prop]](propertyValues[prop]);
}
catch(ex)
{
! this.error("Setter of property " + prop + " returned with an error: " + ex, "set");
};
};
|