Hi, the define methods (qx.Class, qx.Bootstrap, qx.Mixin, etc) are the hooks that allow the generator to recognize a dependency object. That's the why there is a separate 'q' class, otherwise qxWeb could just create the global q alias in its defer block.
Regards, Daniel On 30.08.2013 14:28, benco wrote: > thron7-2 wrote >> Mh, so what exactly is keeping you from using qx.Server? > > Ok, I'll give a try to the Server one. > > > thron7-2 wrote >> I'm not sure I understand what you mean with "Bootstrap". Do you mean >> the class qx.Boostrap specifically, or just any class defined with >> 'qx.Boostrap.define'? > > > thron7-2 wrote >> But you are aware that static classes *are not to be instantiated*, >> right?! That's the whole point of static classes. They are simply >> containers for methods that you call directly on the class, not on any >> instance. > > Actually I though "defining" (so calling indeed qx.Bootstrap.define) was > mandatory to have access to the main object of my build ( like in the code > of "q" <http:// > https://github.com/qooxdoo/qooxdoo/blob/fe5157092a44290c3fb84d40198cb6f5ffe5f18b/framework/source/class/q.js> > ) > > > thron7-2 wrote >> But it isn't. qxWeb is just a container for static methods, full stop. >> Or do you mean the collections that are returned by those methods? > > I didn't understand until I saw the "defer" declaration in qxWeb. Indeed, q > extends qxWeb that extends qx.type.BaseArray that isn't a static class. So, > even though qxWeb contains its own static methods, I though there should be > a "new qxWeb()" declared somewhere. But finally thanks to the defer > declaration, q points to the statics of qxWeb and so it can be then > qualified as a simple container. The question is then why there is a > qx.Bootstrap.define('q' ...) what brings me back to my second comment. > > > > -- > View this message in context: > http://qooxdoo.678.n2.nabble.com/config-json-for-a-custom-skeleton-tp7584497p7584513.html > Sent from the qooxdoo mailing list archive at Nabble.com. > > ------------------------------------------------------------------------------ > Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more! > Discover the easy way to master current and previous Microsoft technologies > and advance your career. Get an incredible 1,500+ hours of step-by-step > tutorial videos with LearnDevNow. Subscribe today and save! > http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk > _______________________________________________ > qooxdoo-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel > > ------------------------------------------------------------------------------ Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more! Discover the easy way to master current and previous Microsoft technologies and advance your career. Get an incredible 1,500+ hours of step-by-step tutorial videos with LearnDevNow. Subscribe today and save! http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk _______________________________________________ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
