Closed scho closed 11 years ago
Thank you for this one, I'll experiment with uglifier and will come up with something before the next release.
I've just stumbled across this issue. As far as I can see it, this isn't fixed yet, is it?
Somehow I missed your fix back then, sorry! I just released 0.8.1 with it, thanks a bunch!
Hi,
today I ran into a strange behaviour of netzke. Whenever the form_authenticity_token contains two slashes ('//') the site won't load because of a JavaScript error "SyntaxError: unterminated string literal".
Here's an example:
ends up with the following netzke/ext.js
It only happens in production, so gues it has something to do with removing comments in JS files. A 'correct' version of netzke/ext.js looks like the following in my case (without a comment at the end of the line):
Here are my gems: https://gist.github.com/3235417 I use ruby 1.9.3
EDIT: I've just found out that most likely String#strip_js_comments causes the problem. I guess Uglifier would do the trick, but that would also introduce another dependency :( https://github.com/lautis/uglifier
Maybe something like this could solve it: