Jump to content

Mootools


diogo
 Share

Recommended Posts

As anyone used MooTools? I like jQuery but this looks very interesting:

var Animal = new Class({
   initialize: function(age){
       this.age = age;
   }
});
var Cat = new Class({
   Extends: Animal,
   initialize: function(name, age){
       this.parent(age); // calls initalize method of Animal class
       this.name = name;
   }
});
var myCat = new Cat('Micia', 20);
alert(myCat.name); // alerts 'Micia'.
alert(myCat.age); // alerts 20.
  • Like 1
Link to comment
Share on other sites

I've used MooTools before jQuery. I didn't enjoy the experience of asking a question on the forums once and getting shot down for it - especially since it was my first question, but that does sometimes come with the territory (though I had read the instructions and used Google, just probably wasn't searching for the right terms).

I find jQuery to be easer to use, but that's just my personal preference and I don't get into complex classes with javascript at all, so opt for what I find to be the easier to use library for general daily use.

  • Like 1
Link to comment
Share on other sites

I used to work with a CMS which bundled MooTools in the frontend by default, kind of forcing users to use it, which I always thought was a very bad choice.

I never really got MooTools, but that's probably because I kind of learned JS through jQuery. Some JS ninjas out there seem to prefer MooTools over jQuery, however. It's way leaner than jQuery, which is nice, but there are even leaner JS “micro libraries” now. What I really prefer in a JS library is a wide choice of plugins for various solutions, and those don't seem to exist for MooTools, at least not to the extent in which they exist for jQuery.

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...