-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
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
wrong minified JS #645
Comments
The commas are valid. |
I just tried using this code it is invalid code. Please look into it |
Here is js fiddle without minifying Here is js fiddle with minifying Minified version is not working. |
That code compresses just fine here: $(function(){var o='<div id="confirm-logout-modal" class="modal hide fade"><div class="modal-header"><h3 class="modal-title">Logout</h3></div><div class="modal-body"><p><span class="modal-main-message">You have been logged</span></p></div><div class="modal-footer"><button id="btn-confirm" class="btn btn-success">Okay</button></div></div>';$("body").append(o),$("#btn-open").click(function(){$("#confirm-logout-modal").modal("show")}),$("#btn-close").click(function(){$("#confirm-logout-modal").modal("hide")})}); Note that I'm using the UglifyJS's command line. In your case the minified code contains obvious syntax errors, but that's probably a bug of https://github.com/lautis/uglifier — please direct your questions there. |
Okay.Thanks |
Here is the piece of javascript code.
I minified it using https://github.com/lautis/uglifier
Its output is
Here is the output of the chrome console
The text was updated successfully, but these errors were encountered: