On 10/18/2011 09:44 AM, MikeschTheCat wrote:
> Hello,
>
> my Application.js is now very big, how can i split my application in small
> files
> like this structure:
>
> source/class/MyApp/Application.js          //
> qx.Class.define("MyApp.Application",{...});
> source/class/MyApp/AddOns/Helper.js    //
> qx.Class.define("MyApp.AddOns.Helper",{...});
>
>
> The Files are on the right place and will read successfully (./generate.py
> -v source)
> But i cannot use the functions in the MyApp.AddOns.Helper Class :=(
> Tested with: var test = new MyApp.AddOns.Helper.MyFunction();

So what error do you get? Where did you put this line "var test = ..."?

The line looks weird anyway. If your class is MyApp.AddOns.Helper, as 
you write, the instantiation is "new MyApp.AddOns.Helper(...)". The 
dangling "MyFunction()" is disturbing. If this is a static method, 
invoke it directly, without the "new" operator:

    var test = MyApp.AddOns.Helper.MyFunction();

If it is an instance method, you need to do two steps:

    var test = new MyApp.AddOns.Helper();   // instantiation
    test.MyFunction();    // method invocation

T.


------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2d-oct
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to