php-debugbar icon indicating copy to clipboard operation
php-debugbar copied to clipboard

Prototype conflict in widgets.js

Open zoltan-sule opened this issue 10 years ago • 1 comments

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.

zoltan-sule avatar Jan 29 '16 16:01 zoltan-sule

Thanks @zoltan-sule . It seems we had no issue with this up until recently for some unknown reason, but this fix worked

ACGicomer avatar Apr 12 '17 17:04 ACGicomer