swisnl / jQuery-contextMenu

jQuery contextMenu plugin & polyfill
https://swisnl.github.io/jQuery-contextMenu/
MIT License
2.25k stars 744 forks source link

contextMenu v3 should keep a reference to the original jQuery object #686

Open skerit opened 5 years ago

skerit commented 5 years ago

As soon as a new jQuery version is loaded on the website contextMenu breaks because it uses the global $ as a reference to jQuery.

Loading multiple jQuery versions is obviously something that won't (and shouldn't) happen that often, but it can easily be remedied, by creating a new scoped $ variable inside contextMenu's module:

var $ = window.$;