Google prettify stops working when my JS
file has a Object.prototype.myFunction = function(...
.
I.e. when I have at least one new function defined inside the Object.prototype
, It prevents prettify
to show code on my web-page.
Even though, I don't try to show that javasript
file inside prettify code viewer. I just use that js-file as a lib.
I wonder why.. and how to avoid this? There is No any error in the browser when it happens