Closed (fixed)
Project:
Prism
Version:
2.0.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
12 Apr 2022 at 20:55 UTC
Updated:
26 Apr 2022 at 21:04 UTC
Jump to comment: Most recent
Right now the prism.js file in the module makes us of jQuery. But, the library definition doesn't make this requirement explicit. So it's possible to have prism.js load on the page, but not jQuery. Which can result in a jQuery is undefined JavaScript error.
I think the best fix for this is to remove the dependence on jQuery. It's currently only used to detect if an AJAX operation was run, but there are other ways we can do that that don't require jQuery.
Comments
Comment #3
eojthebrave