Issue in a "non-jquery-global-mode"
Cryde opened this issue · comments
Hi,
When I "require" the module in my script like import 'metismenu';
I have this error in my console :
ReferenceError: jQuery is not defined
Which is normal.
In the dist
folder you use the global jQuery :
https://github.com/onokumus/metismenu/blob/master/dist/metisMenu.js#L127
https://github.com/onokumus/metismenu/blob/master/dist/metisMenu.js#L344
If I remplace that injecting _jquery
(instead of jQuery
) it work.
You should probably do that because you inject _jquery
in this scope :
https://github.com/onokumus/metismenu/blob/master/dist/metisMenu.js#L22
same problem for me, thanks for the solution.
don't uderstand 'wontfix' mark from author
Hi, @tvolodimir
Sorry for the "wontfix" label. I guess, then I am very pensive.
@tvolodimir @Cryde
This bug has been fixed since version 2.7.5.