There is no conflict mode in the latest version of MooTools. Unfortunately, Prototype does not do this, which means that it $must be bound to Prototype.
To enable safe dollar mode, upgrade your MooTools version and make sure you enable MooTools after Prototype.
<script type="text/javascript" src="prototype.js" />
<script type="text/javascript" src="mootools.js" />
$ Prototype. MooTools $ document.id.
var X = new Class({
initialize: function(element){
this.element = $(element);
}
});
var X = new Class({
initialize: function(element){
this.element = document.id(element);
}
});
:
(function(){
var $ = document.id;
this.X = new Class({
initialize: function(element){
this.element = $(element);
}
});
})();
Dollar MooTools:
http://mootools.net/blog/2009/06/22/the-dollar-safe-mode/