On 3 Jun 2010, at 21:35, Petr Kobalíček wrote:
> thanks for using QxBuild.
You're welcome. It's very helpfull for one who don't want to bother with the
build tool, you know. ;)
> I think that it's possible to do what you need. First it's needed to
> fix the syntax error :
> qxscripts = [
> qxsettings["qx.path"] + "/script/qx-" + qxsettings["qx.mode"] + ".js"
> ];
Yes, forgot that one. But I fixed it soon as Firebug complained. :D
> then you have to attach an 'finish' event listener to the qxloader:
> qxloader.finish = function() {
> // your code...
> };
Yes, this is what I need! Thank you very much! However, to make the code
cleaner, I wrote it like below:
(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;
}());
It does work. But, is it correct to do it like that? My JS knowledge is close
to nothing, I want to make sure it's a correct way of doing the thing.
> this listener is called after all files are loaded and before qooxdoo
> is initialized, it's middleware :)
Well, since I don't know much about JS, yet Qooxdoo, I had no idea how to do
it. :)
> This is all:)
Thank you.
-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