:)
On Oct 9, 12:08 pm, Andrea Dessì <nkj...@gmail.com> wrote: > Ahhhhhhh :) > > okok I just needed the keys() function :) > > so I'll do: > > var pippo = { "a": 1, "b": 2}; > var myArrayKeys = Object.keys(pippo); > > wonderful. > > Thank You so much Chris. > -- > Andrea > > On Sat, Oct 9, 2010 at 11:59, Christoph Pojer > <christoph.po...@gmail.com>wrote: > > > > > > > > > Note that Hash is not present in a build of MooTools Core 1.3 without > > 1.2compat. This means you will have to include Hash from MooTools More > > (we moved it, only the compat build in Core has it). Just use normal > > objects from now on. We put all important methods on "Object" itself. > > Like Object.getValues(obj) etc. Object.keys(obj) is actually a method > > in the ES5 standard, which means that NodeJS (and more recent > > browsers) include(s) it natively already. > > > On Oct 9, 11:30 am, Andrea Dessì <nkj...@gmail.com> wrote: > > > Hi all, > > > > I'm using the 1.3dev from the git with Nodejs. > > > I'm still learning and I was guessing how to use the Hash object. > > > > Of course I have this: > > > require.paths.push('./moo/'); > > > require('MooTools').apply(GLOBAL); > > > > and later: > > > > var Pippo = new Class({ > > > ........... > > > > }); > > > > and It works. > > > > but this doesn't work: > > > > var hh = new Hash(); //not work > > > > var test = { "a", 1, "b", 2 }; // I thought the object were just > > > extended :P > > > test.getKeys(); //no way > > > test.keys(); // nope. > > > > So... any hint? :) > > > What I'm missing?