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?
Sorry if my question sounds silly. :D
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