Even more code reduction could be done declaring all vars in the same
place:
function Foo1(){}
function Foo2(){}
function Foo3(){}
... could be reduced to
var Foo1=d(),Foo2=d(),Foo3=d();
- Andrés
On 2 jul, 19:11, Andrés Testi <[email protected]> wrote:
> Having a function like:
>
> function d(){
> return function(){};
> }
>
> ... class declarations like:
>
> function Foo(){}
>
> ... could be reduced to:
>
> var Foo=d()
>
> ... reducing compiled code by 5 characters for each declaration.
>
> - Andrés
--~--~---------~--~----~------------~-------~--~----~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~----------~----~----~----~------~----~------~--~---