Thank you, Sebastian!
It works great now! :)
Sebastian Werner пишет:
> Hi Kirill,
>
> I've fixed this in SVN with revision 4121.
>
> Thanks.
>
> Sebastian
>
>
>
> Kirill Balyasnikov schrieb:
>> Sorry, i missed () pair in my previuos post. Here is a full file:
>>
>> qx.OO.defineClass("my.locale.Locale", qx.core.Object,
>> function()
>> {
>> qx.core.Object.call(this);
>> this._vLoadedMessages = {};
>> });
>>
>> qx.Proto.translate = function( message )
>> {
>>
>> }
>>
>> qx.Proto._loadApplicationMessages = function( application )
>> {
>> this._vLoadedMessages[application] = true;
>> }
>>
>> qx.Proto._isApplicationMessagesLoaded = function( application )
>> {
>> return this._vLoadedMessages[application] ? true : false;
>> }
>>
>> function _M( message )
>> {
>> return message;
>> };
>>
>> qx.Proto.dispose = function()
>> {
>> if (this.getDisposed()) {
>> return true;
>> }
>>
>> return qx.core.Object.prototype.dispose.call(this);
>> }
>>
>> And this is output fragment:
>>
>> pplication]?true:false}function _M(message){return
>> message}qx.Proto.dispose=function(){if(this.getDisposed()){return
>> true};return qx.core.Object.prototype.dispose.call(this)};qx.OO.defineCl
>>
>>
>>
>> Sebastian Werner пишет:
>>> Kirill Balyasnikov schrieb:
>>>> The new compiler is good, but it fails in one situation. If you try to
>>>> put some simple function definition into file with class it will write
>>>> the function into build(compliled) without ';' around it. For example:
>>>>
>>>> qx.OO.defineClass("myClass", qx.core.Object,
>>>> function()
>>>> {
>>>> qx.core.Object.call(this);
>>>> });
>>>>
>>>> qx.Proto.myFunc = function() {}
>>>>
>>>> // Here it will fail:
>>>> function myGlobalFunc {
>>>> alert('I\'m here');
>>> You know that you missing a () pair here, do you?
>>>
>>> Could you send a complete class file which generated wrong output in
>>> your opinion?
>>>
>>> Thanks.
>>>
>>> Sebastian
>>>
>>>
>>>> }
>>>>
>>>>
>>>> Another thing: i think it would be nice idea to make it possible for
>>>> compiler to include already compiled JS file. For example: i can set
>>>> path to compiled qx.js file and generate source-script-file which will
>>>> load all my project files and qx.js. It's very usefull when you have to
>>>> work with full qooxdoo distributive and don't want to load about ~280
>>>> files everytime you press F5. Sorry for my english )
>>>>
>>>>
>>>> Sebastian Werner пишет:
>>>>> Hi qooxdoo community,
>>>>>
>>>>> another step forward to highly optimized applications based on qooxdoo:
>>>>>
>>>>> I would like to introduce the tree "compiler". The tree compiler is able
>>>>> to "compile" a syntax tree (generated by treegenerator.py which uses the
>>>>> tokenizer.py) back to optimized JavaScript code. In it's feature set it
>>>>> is comparable to our old compiler, which was directly based on the
>>>>> result of the tokenizer.py script. It removes comments, whitespaces and
>>>>> other optional stuff.
>>>>>
>>>>> This tree compiler is an important step, because it allows us to do the
>>>>> following awesome things in future:
>>>>>
>>>>> * Remove complete methods (debug statements, ...)
>>>>> * Remove cross-browser constructions and generate a version for each
>>>>> browser/engine.
>>>>> * Compress variable names
>>>>> * Lay out strings and reduce usage of simple constants (like "auto",
>>>>> "100%", ...) in future (Automatic IE performance improvement)
>>>>> * Obfuscate the whole application (variable, function and class names)
>>>>> etc.
>>>>>
>>>>> Now the interesting part: The tree compiler is the default from now on.
>>>>> It is already available in SVN and will be in the final release of
>>>>> qooxdoo 0.6. The whole qooxdoo is able to use the tree compiler and will
>>>>> use it now. The tree compiler was tested against qooxdoo and another big
>>>>> internal project so we think it's quite stable already. It may not be
>>>>> free of bugs already so I'm happy to fix bugs as fast as you can report
>>>>> them ;)
>>>>>
>>>>> If you have problems with this new compiler, you can use the old one
>>>>> using the "--use-token-compiler" argument (generator.py). Each Makefile
>>>>> which is included in qooxdoo, has a new variable (OLDCOMPILER) in the
>>>>> first lines of the file which lets you select the compiler (simply set
>>>>> it to "true").
>>>>>
>>>>> I hope you enjoy this new era of JavaScript optimization. Kudos to Til -
>>>>> without the treegenerator.py developed by him, qooxdoo has maybe never
>>>>> seen such a tree based optimizer.
>>>>>
>>>>> You can immediately test the new version. It's also online available in
>>>>> the online demos (http://demo.qooxdoo.org) and the API viewer
>>>>> (http://api.qooxdoo.org).
>>>>>
>>>>> For all SDK/source version users: Please be sure to delete your
>>>>> ".cache". A "make distclean" for example will do this.
>>>>>
>>>>> Cheers,
>>>>>
>>>>> Sebastian
>>>>>
>>>>> -------------------------------------------------------------------------
>>>>> Using Tomcat but need to do more? Need to support web services, security?
>>>>> Get stuff done quickly with pre-integrated technology to make your job
>>>>> easier
>>>>> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
>>>>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>>>> -------------------------------------------------------------------------
>>>> Using Tomcat but need to do more? Need to support web services, security?
>>>> Get stuff done quickly with pre-integrated technology to make your job
>>>> easier
>>>> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
>>>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>>>> _______________________________________________
>>>> qooxdoo-devel mailing list
>>>> [email protected]
>>>> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>>> -------------------------------------------------------------------------
>>> Using Tomcat but need to do more? Need to support web services, security?
>>> Get stuff done quickly with pre-integrated technology to make your job
>>> easier
>>> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
>>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>>> _______________________________________________
>>> qooxdoo-devel mailing list
>>> [email protected]
>>> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>>
>> -------------------------------------------------------------------------
>> Using Tomcat but need to do more? Need to support web services, security?
>> Get stuff done quickly with pre-integrated technology to make your job easier
>> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>> _______________________________________________
>> qooxdoo-devel mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
>
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel