php-debugbar
php-debugbar copied to clipboard
Prototype conflict in widgets.js
I integrated the debugbar into a custom framework where prototype and jquery works together and I like it very much.
I have only one problem. I had to comment out the
code.each(function(i, e) { hljs.highlightBlock(e); });
line in the
vendor/maximebf/debugbar/src/DebugBar/Resources/widgets.js
file, because I didn't find a way to make it compatible with prototype.
It always throws this error:
TypeError: this.each is not a function this.each(function(value, index) { prototype.js (line 864, col 5)
and the jQuery not available here.
Thanks @zoltan-sule . It seems we had no issue with this up until recently for some unknown reason, but this fix worked