Answer the question
In order to leave comments, you need to log in
How to make jQuery and MooTools work and not interfere with each other?
Hello! I installed a chat on the site (locallhost), displaying messages, etc. written in jQuery.
The site also has the MooTools library.
On the chat page, the console gives an error in the MooTools code (library), namely on the 15th line, and it looks like this:
x++){var z=v[x];if(e(z)=="type"){h.call(z,w,A);}else{z.call(this,w,A);}}var y=this.prototype[w];if(y==null||!y.$protected){this.prototype[w]=A;}if(this[w]==null&&e(A)=="function"){t.call(this,w,function(i){return A.apply(i,o.call(arguments,1));
Answer the question
In order to leave comments, you need to log in
Where are you calling jQuery.noConflict()? try calling after jQuery is loaded but before MooTools is loaded.
If you disable jQuery, then the scripts on MooTools work fine?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question