Try this instead:
var constructor = qx.OO.classes["qx.core.Object"];
qx.Proto = constructor.prototype;
qx.OO.addProperty({ name: "myproperty", type:
qx.constant.Type.STRING, defaultValue: null});
Charles SALMON schrieb:
Hello,
In qooxdoo 0.5, I was able to add some properties (and functions) to
QxObject, WITHOUT having to modify the QxObject.js file, by doing:
QxObject.addProperty(...) for prop
and
QxObject.prototype.new_function = function () {...} for function.
in my 'qooxdooPatch.js' _javascript_ file.
Now, in 0.6, it seems that doing a :
qx.core.Object.addProperty()
does not work anymore.
I can not use the 'qx.OO.addProperty
' as 'qx.OO' will not point on the 'qx.core.Object'.
To summarize, how to addProperties and functions to a class from
another class ?
Thanks,
Charles.
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
--
Mit freundlichen Grüßen
Dietrich Streifert
Visionet GmbH
|
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel