Yeah, I know I can tell it to load between qooxdoo and my app, thats why I
want it to load as the first file from myapp.
I cant convert it to a static class because the developer than creates
basefile.js used the base namespace as class, I mean the source is like:
var myapp = {
init: function() { ... },
callServer: function() { ... },
getMessageBus: function() { ... },
...
};
So it is used like:
myapp.init();
myapp.callServer();
myapp.getMessageBus()
And also like:
new myapp.ui.Window();
new myapp.Message();
And I cannot tell qooxdoo to compile it because it searches all files INSIDE
the namespace directory
myapp/
source/
class/
myapp/
ui/
Window.js
Message.js
myapp.js
Window.js and Message.js will be compiled because they are inside
myapp/source/class/myapp but myapp.js does not.
And I cannot change the code because the functions are used so many times
inside the code and the code is like 5MB when compressed so I hope you
understand I cannot make a replace-in-files without breaking something I
dont know.
If there is some way to tell qooxdoo to compile a file called as the library
namespace this will be great to me, but I did not found a way to do it.
Thanks,
---
Seldaiendil
2011/7/22 thron7 <[email protected]>
>
>
> On 07/22/2011 05:57 PM, Seldaiendil D. Flourite wrote:
> > Hi Tino,
> >
> > Thanks for your answer, you are right, basefile is not a class, I
> > tryed using add-script, but it adds code to load it at runtime and I
> > need this file to execute exactly between Qooxdoo code and MyApp code.
>
> Yes, 'add-script' files are loaded ahead of all others. But there is
> also no such line "between Qooxdoo code and MyApp code". Framework
> classes and application classes mix freely, just constraint by the load
> order.
>
> Is your basefile.js making references to qooxdoo classes? - Then it's
> absolutely mandatory that you convert it into a proper class. Can't be a
> big deal, e.g. just turn all functions into static methods. - What is it
> like?
>
> T.
>
>
>
> ------------------------------------------------------------------------------
> 10 Tips for Better Web Security
> Learn 10 ways to better secure your business today. Topics covered include:
> Web security, SSL, hacker attacks & Denial of Service (DoS), private keys,
> security Microsoft Exchange, secure Instant Messaging, and much more.
> http://www.accelacomm.com/jaw/sfnl/114/51426210/
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
------------------------------------------------------------------------------
10 Tips for Better Web Security
Learn 10 ways to better secure your business today. Topics covered include:
Web security, SSL, hacker attacks & Denial of Service (DoS), private keys,
security Microsoft Exchange, secure Instant Messaging, and much more.
http://www.accelacomm.com/jaw/sfnl/114/51426210/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel