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
