Hi Christoph, thanks for the response.
more concrete, i was trying to use it in a ringojs project of mine,
and i would've not discovered this issue, until i hit a problem in
their skin implementation.
there was an array , and they were doing an iteration through the
array with the "in" operator:
something like this:
-------
method for each (part in parts)
--------
where parts was the array, and iterating like this, made part be also
the mootools functions aside from the array values.
at first, i didn't discover the ringojs problem, but the mootools problem.
it isn't an issue now, as i fixed it in ringojs.
i thought i could get here a link to another SSJS mootools which
behaves more like my taste, or an easy answer how i could fix your
github version
in order to keep Array extensions in the mootools module only.

i read the blog post , and indeed you are right about adding functions
on global object is mootools way of doing things [and javascript's].
for example i love the bind on the Function object, and i want to keep
it in my future hacked mootools module.
Array, Number, String additions , hmm, not that much, i can do without
them, but that is just a personal taste.

cheers

On Sat, Nov 13, 2010 at 2:58 AM, Christoph Pojer
<[email protected]> wrote:
> Hello,
>
> note that anything on my 2.0wip branch is purely experimental. You
> might wanna check out my guest blog post on David Walsh (FTW) Blog:
> http://davidwalsh.name/mootools-nodejs which supports MooTools 1.3
>
> Currently we have no plans to namespace and subclass any of the native
> types. The extensions to native objects on an ES5 implementation are
> fairly minimal. Why exactly is this an issue for you?
>
> Bye
>
> On Nov 12, 3:29 pm, gabriel munteanu <[email protected]> wrote:
>> Hi,
>> i took the server side mootools from 
>> here:http://github.com/cpojer/mootools-core/tree/2.0wip
>> and built it with packager.
>> all goody.
>> now, when i load it in another module with require:
>> var MT = require('mootools.js');
>> i get MT.Class as expected, but i get Array global object polluted.
>> i don't think this is good. if i would like mootools flavored Array, i
>> would create a var myArr = new MT.Array();
>> is it possible to have MT.Array, and not pollute the global Array ?
>>
>> thank you in advance.



-- 
jgabios
http://bash.editia.info

Reply via email to