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ì <[email protected]> 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?

Reply via email to