Hey, q.define forwards to qx.Bootstrap.define which is subset of qx.Class,define. But that shoud anyway return a function! Could you supply a sample where it doesn't? Thanks, Martin
Am 20.09.2012 um 19:12 schrieb Loren Schlomer <[email protected]>: > Quick question regarding q.define(x,{...}) > > I'm not certain the API docs match the implementation of this utility > function. I would hope the docs would be correct, and that we could > create and extend classes using the qooxdoo OO type system. (Similar > to prototype's Object.create/extend methods) > > However, it does not work as expected. > > var SomeClass = q.define('SomeClass', {...}) > > only returns the following object and not a function prototype: > > { > $$type: 'Class', > basename: 'SomeClass', > classname: 'SomeClass', > name: 'SomeClass', > toString: function () {...} > } > > > Is this a bug, or desired behavior? - In which case, am I reading the > API docs incorrectly? > > I apologize if this was mentioned previously; The only reference I > could find outside of the API docs is the short snippet in the reply: > http://qooxdoo.678.n2.nabble.com/Discussion-about-Qooxdoo-quot-Website-quot-new-feature-td7482249.html > > ------------------------------------------------------------------------------ > Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics > Download AppDynamics Lite for free today: > http://ad.doubleclick.net/clk;258768047;13503038;j? > http://info.appdynamics.com/FreeJavaPerformanceDownload.html > _______________________________________________ > qooxdoo-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel ------------------------------------------------------------------------------ Got visibility? Most devs has no idea what their production app looks like. Find out how fast your code is with AppDynamics Lite. http://ad.doubleclick.net/clk;262219671;13503038;y? http://info.appdynamics.com/FreeJavaPerformanceDownload.html _______________________________________________ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
