diogo Posted October 7, 2012 Share Posted October 7, 2012 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. 1 Link to comment Share on other sites More sharing options...
Pete Posted October 7, 2012 Share Posted October 7, 2012 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. 1 Link to comment Share on other sites More sharing options...
yellowled Posted October 8, 2012 Share Posted October 8, 2012 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 More sharing options...
Nico Knoll Posted October 9, 2012 Share Posted October 9, 2012 I've used MooTools before jQuery like Pete. But jQuery is much nicer I guess. And easier to handle Link to comment Share on other sites More sharing options...
WillyC Posted October 10, 2012 Share Posted October 10, 2012 this.why i no use moo .tools or leche 1 Link to comment Share on other sites More sharing options...
Recommended Posts