Hi,
I'm migrating a qx 2.0 desktop app. As I was using the now removed
qx.bom.Collection class, I'd like to switch to qxWeb because using
qx.bom.Selector() isn't comfortable enough in my case.
My problem is some modules aren't initialized when creating new
objects.Here's an example:
*old code*
var prt = new qx.bom.Collection(domElement); // domElement is a
var target = prt.parents('p')[0];
*new code [doesn't work]*
var prt = new qxWeb(domElement);var target = prt.getParents('p')[0]; //
throws an error: getParents() is not a function
*new code [works but a bit hacky]*
var prt = new qxWeb(domElement);var target =
qx.module.Traversing.getParents.call(prt, 'p')[0];
How can I make sure the Traversing Module is initialised correctly ... ? In
the config.json file ?
Best Regards,
BenoƮt
--
View this message in context:
http://qooxdoo.678.n2.nabble.com/how-to-use-init-qxWeb-inside-desktop-apps-tp7585241.html
Sent from the qooxdoo mailing list archive at Nabble.com.
------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today.
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel