Nathan,
You are missing a seriously important fundamental concept of
MooTools. MooTools enhances the JavaScript language by augmenting
methods to the native objects' prototypes. Any other framework that
does the same, or has anything else conflicting in that regard will be
incompatible. (Think Prototype) On top of that, there are waaay more
functions, classes, and objects in the global namespace. It's much,
much more than just $.
There is no way to create a MooTools compatibility mode, without
completely rewriting the framework, (damn near every line of it), and
making everything use generics by default, everywhere. Prototypes
could then optionally be applied. Instead of [1,2,3].each(fn), we
would have to use Array.each([1,2,3], fn) everywhere. I repeat, it
will never, ever be possible to make a MooTools compatibility mode
with the code in 1.x.
We could rewrite the framework from scratch to do pretty much exactly
what base2.js does, (as described above) but Dean Edwards has already
done a truly fantastic job with this. If we ever get into developing
a moo2, it would probably be very, very similar to base2.js, and might
even support a 'compatibility' mode; but don't hold your breath.
Check out the MooTools source code, the base2 and jQuery source, and
do a little more research if you don't fully understand what the issue
is. Post back here if you have any more questions about why this
isn't possible with frameworks like MooTools and Prototype.
- Tom
ps: @Iván, one question mark (?) is enough!
On Oct 13, 2008, at 11:15 PM, Iván N Paz wrote:
Hi Nathan
No, actually I "miss-expressed"... When I said "prototyping" I meant
"Altering the native elements, such as String, Array, etc..."
Would that be possible to overcome as well???
Cheers
Iván
On 10/13/08, nwhite <[EMAIL PROTECTED]> wrote:
Prototyping? You mean using Implement or Extends.. No..
I'll take a stab at getting a working version up.
If anyone can shoot this idea down, please don't hesitate to do
so ;-)
On Mon, Oct 13, 2008 at 10:14 PM, Iván N Paz <[EMAIL PROTECTED]>
wrote:
What about the prototyping of native elements?????
That conflict would still exist... wouldnt it?
--
◦
◦
◦
◦
◦
◦
◦
◦
◦
◦
◦
◦
◦
◦
◦
◦
◦
◦
◦
◦
◦
◦
◦
◦
◦
◦
◦
◦
◦
◦
◦
◦
◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦
www.ivanicus.com