Thomas
> im trying to create a class by name with qx.Class.getByName(NameOfClass)
> which was previously loading by the PartLoader. Think of Plugins which the
> main app only knows by name.
>
> Sample:
> Class custom.ClassA in Part "ClassA"
>
> qx.io2.PartLoader.require([name], function() {
> var clazz = qx.Class.getByName("custom."+name);
> var instance = new clazz();
> },this);
>
>
> i became the error message clazz is not a constructor any ideas?
>
Interesting. What is the return value from your
qx.Class.getByName("custom."+name) call? Can you verify that the
expected class (e.g. "custom.ClassA") is actually loaded after the
PartLoader.require call (e.g. in Firebug)?
T.
------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel