Hi Petr,
this was a bug in qooxoo. Should be fixed now in CVS.
Sebastian
Petr Šimek schrieb:
Hi qooxdoo people,
when I use QxTree as property of my object (child of QxDockLayout),
everything seems ok, but I get this message from qooxdoo debugger:
QxTree[HASHCODE:67]
000375:Failed to execute "_modifyParent()":Modification of property
"parent" failed with exception(propValue.getParent() has no properties)
My code:
function MyApp() {
QxDockLayout.call(this);
this.setLocation(0, 0);
this.setDimension(800, 600);
this.setBorder(QxBorder.presets.black );
this._modules=new QxTree("Test");
this.add(this._modules);
}
MyApp.extend(QxDockLayout,"MyApp");
window.application.main = function() {
var doc = this.getClientWindow ().getClientDocument();
var dockLayout = new MyApp();
doc.add(dockLayout);
}
When I use QxTree in window.application.main body, then everything is ok
and no error message is thrown:
function MyApp() {
QxDockLayout.call(this);
this.setLocation(0, 0);
this.setDimension(800, 600);
this.setBorder(QxBorder.presets.black);
}
MyApp.extend(QxDockLayout,"MyApp");
window.application.main = function() {
var doc = this.getClientWindow().getClientDocument();
var dockLayout = new MyApp();
doc.add(dockLayout);
modules=new QxTree("Test");
dockLayout.addLeft(modules);
}
Am I doing anything wrong or is it bug in qooxdoo? (I am using qooxdoo
0.5.1)
Best regards,
Petr
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel