Hi,

> You suggested to use:
>
>     a = []
>
> instead of:
>
>     a = new Array()
>
> What is the difference?

It's shorter and does exactly the same thing. Similarly, `{}` is the
same as `new Object()`.

-- T.J. :-)

On Dec 7, 9:43 pm, Frédéric <f...@gbiloba.org> wrote:
> On lundi 07 décembre 2009, Tobie Langel wrote:
>
> > A couple suggestions:
>
> >https://gist.github.com/bb3d40f6915118da4dec
>
> Thanks!
>
> You suggested to use:
>
>     a = []
>
> instead of:
>
>     a = new Array()
>
> What is the difference?
>
> PS: about the try/catch, in my real code, I log the error on Firebug
> console...
>
> --
>     Frédéric

--

You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptacul...@googlegroups.com.
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en.


Reply via email to