Hi Bee,

I have another improvement, it's some time I wrote qxloader so I
forgot for correct syntax, you can rearrange your code to:

qxscripts = [
 qxsettings["qx.path"] + "/script/qx-" + qxsettings["qx.mode"] + ".js"
];

qxloader.run({
  scripts: qxscripts,

  finish: function() {
    // your code here...
  }
});

On Fri, Jun 4, 2010 at 9:34 AM, Bee Jay <[email protected]> wrote:
> On 4 Jun 2010, at 14:26, Bee Jay wrote:
>
>> (function() {
>>  appMain = function() {
>>       qx.Class.define("custom.Application",
>>       {
>>          // <-- my custom code goes here --->
>>       });
>>  };
>>  // here is the qxloader script
>>  qxloader.run({scripts: qxscripts});
>>  qxloader.finish = appMain;
>> }());
>
> One more thing... I don't understand why the function has to be within 
> paranthesis? When I removed them, so the code looked like this:
>
> function() { // <-- notice the missing paranthesis before "function"
>  appMain = function() {
>        qx.Class.define("custom.Application",
>        {
>        // <-- my custom code goes here --->
>        });
>  };
>  qxloader.run({scripts: qxscripts});
>  qxloader.finish = appMain;
> }();
>
> Firebug complained with error message "Syntax error: Parse error" or 
> something like that. Would you please explain why it has to be like that?

It's a javascript syntax question, I think that if you want to create
function and call it it must be covered by another parenthesis, but I
didn't read the ecmascript reference so I'm guessing here :)

> Sorry if my question sounds silly. :D

Don't worry, no problem for me ;)

> TIA.
>
> -Bee-
>
>
> ------------------------------------------------------------------------------
> ThinkGeek and WIRED's GeekDad team up for the Ultimate
> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
> lucky parental unit.  See the prize list and enter to win:
> http://p.sf.net/sfu/thinkgeek-promo
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>



-- 
Best regards
- Petr Kobalicek <http://kobalicek.com>

------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to