How to prevent conflicts between mooTools and Prototype

I know that jQuery.noConflict () is used to avoid a conflict between $ any other library and jQuery (i.e. prototype) But let me say that I use Prototype, MooTools and jQuery. In this case, jQuery.noConflict () will work fine for jQuery and any other combination of libraries, but then with Prototype and MooTools, if they both use $, the code / browser will determine it correctly. Note. I have never worked with Prototype and MooTools, so I'm sorry if my question is not in any sense.

+3
source share
3 answers

If these other frameworks do not have something that matches the option noConflict, the last loaded of these frameworks will overwrite the definition $with their own, and the first loaded structure will be broken if they both depend on$

+2
source

. - , - . , .

. , jQuery, Mootools . , Prototype, jQuery Mootools .

-1

Source: https://habr.com/ru/post/1723783/


All Articles