We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Original Code:
$( 'body' ).css('background','red'); $( 'div' ).css('background','blue');
Uglified Code:
$(\"body\").css(\"background\",\"red\"),$(\"div\").css(\"background\",\"blue\");
Notice the comma added before $(\"div\")
$(\"div\")
The text was updated successfully, but these errors were encountered:
Using commas to separate statements instead of semicolons is valid ECMAScript, even though some implementations do have issues with it. Check out http://my.opera.com/hallvors/blog/2012/07/17/twitter-crashes-itself-with-commas.
Sorry, something went wrong.
Ah, thanks @lautis. Setting :seqs => false gets around this.
Uglifier.new(:seqs => false).compile(File.read("app/assets/javascripts/temp3.js")) => "$(\"body\").css(\"background\",\"red\");$(\"div\").css(\"background\",\"blue\");"
No branches or pull requests
Original Code:
Uglified Code:
Notice the comma added before
$(\"div\")
The text was updated successfully, but these errors were encountered: