Reputation: 2201
I want to use Zepto in a page that has both jQuery and Prototype.
But i can't find noConflict()
in Zepto documentation. I use my jquery code with prototype on the same page so no-conflict is very important.
Can someone let me know how to use Zepto in noConflict mode?
Upvotes: 0
Views: 772
Reputation: 49208
It looks like here in the source if you include Zepto after jQuery or whatever library that will get $
, it will not set it (defacto noConflict()
):
// If `$` is not yet defined, point it to `Zepto`
window.Zepto = Zepto
'$' in window || (window.$ = Zepto)
Upvotes: 4