On Thu, Feb 3, 2011 at 12:00, josefkoller <[email protected]> wrote:

>
> Hi,
>
> I hope I understand it correctly:
>
> Before I check my new entries in the application.js I have to run the
> python
> script with source?
>

If you're debugging with the "source" version, i.e., you use "generate.py
source", what that command does is to create a single JavaScript file that
gets loaded, which loads all of the other classes *that you reference in
your current application*. If you use "generate.py source-all" then it
creates a single JavaScript file that gets loaded, which loads all of the
classes in qooxdoo, plus those referenced in your current application.

Using the "source-all" option makes development (small) a bit easier because
you need to run the generator less frequently, but it makes loading the
application take much longer because many classes that you don't even use
get loaded.

Let's assume that you're using the "source" option instead. You can edit
your application without needing to re-run the generator, as long as your
application does not require any classes that were not previously required.
If you're making small changes to your application, you can just press
Reload in the browser. On the other hand, if you make changes that require
use of classes that were not previously referenced, that JavaScript file I
mentioned earlier, that loads all of the classes, won't contain this new
class that you're now referencing, so you need to run the generator again so
that it rebuilds that JavaScript loader file to include this
newly-referenced class. The same applies if you add a new class of your own,
i.e. in your application. Since the generated loader file doesn't know about
your new class, you'd re-run the generator so that your new class can get
loaded when you refresh the browser.

If you're using the "source-all" version, you need to re-run the generator
only when you add classes of your own, since all of the qooxdoo classes were
already added to that loader file. But, as previously mentioned, using
"source-all" takes much longer to refresh your application because of the
very many unused classes that get loaded.

Hope that helps your understanding.

Derrell
------------------------------------------------------------------------------
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