Hi,

If I use a own class in my Application.js I use till now this method:

qx.Class.define("imkerei.Application",
{
  extend : qx.application.Standalone,

  members :
  {
    main : function()
    {
     qx.Class.define("custom.MovableLabel", 
       { 
        extend : qx.ui.basic.Label, 
        include: [qx.ui.core.MMovable], 
        construct : function(content) 
        { 
         this.base(arguments, content); 
         this._activateMoveHandle(this); 
        } 
       });
// and I use it with 
    test = new custom.MovableLabel("Texttest");
    ....
    }
 }
});

Is it possible to outsource such own classes for example to ownClasses.js
and import such classes from ownClasses.js into my Application.js?

Background:
If I have more such "own classes" my Application.js will be very long and
unclear.

Or which syntax I have to use to get a structered code (not all in
Application.js)?

Thanks

Josef
-- 
View this message in context: 
http://qooxdoo.678.n2.nabble.com/include-a-class-from-an-other-js-file-tp5988565p5988565.html
Sent from the qooxdoo mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to