Open
Description
I have initialized window.jQuery = jQuery; now, i want to add some prototype functions with different jQueries, like
var a = window.jQuery;
var b = window.jQuery;
a.fn.helloWorld = () => 1;
b.fn.helloWorld = () => 2;
console.log(a.fn.helloWorld()); // 2
console.log(a.fn.helloWorld()); // 2
In this case, when i use noConflict
from a
variable, then b
has undefined then, how can i use jquery for this case?
Metadata
Metadata
Assignees
Labels
No labels