Hash is definitely more elegant, and that's why it exists. However, some
people might not care or need to use those methods enough to make the extra
file size worth it.



On Thu, Nov 4, 2010 at 9:43 AM, Ronny <[email protected]> wrote:

> Using a hash looks more elegant for me, but I'd love to learn what are
> the benefits of each(no pun intended) approach.
> Simplified examples: http://jsfiddle.net/Ronny/zmfK8/
>
>  - Ronny
>
> On Nov 4, 12:13 am, Sean McArthur <[email protected]> wrote:
> > Object.each is a generic method, not an instance method. MooTools doesn't
> > modify the Object prototype, so you cant do ({ a: 1 }).each().
> >
> > The correct way to do is shown as an example in the docs:
> >
> > Object.each(myObj, function(val, key) {
> >
> > });
> >
> > On Wed, Nov 3, 2010 at 3:10 PM, André Fiedler
> > <[email protected]>wrote:> Don´t know where´s the problem.
> Could someone plz help me?
> >
> > >http://jsfiddle.net/SunboX/MNmGg/
> >
> > > greetings Sunny
>

Reply via email to