Gravatar for

Question by Daniel Reedy, Apr 24, 2015 2:51 PM

jQuery noconflict parameter

There is a parameter in the jQuery noconflict API. When true, it reverts both $ and jquery back to the former version; not just $. However, I don't know how to pass that parameter through the Coveo wrapper:


Any ideas?

1 Reply
Gravatar for

Answer by Jean-François L'Heureux, Apr 24, 2015 2:54 PM

Here's the implementation of the coveo('noConflict') method. It always pass true to the jQuery method.

CoveoJQuery.noConflict = function () {
    Coveo.$ = jQuery.noConflict(true);
    window["$"].fn.coveo = Coveo.$.fn.coveo;
Ask a question