About YUI compressor and javascripts -


I am using handlers in my website. That's why I need to send 'handlebars.runtime.js' to the client side. Although I came to know that 'handlebars.runtime.js' has not been compressed from the official website, so I use YUI compressor to compress it.

When I checked the compressed 'handlebars.runtime.js', something strange happened: Some codes have disappeared in coded when I have a lot of comparison with the previous one and the beginning of compressed one is: / P>

  / *! Handlers v1.3.0 Copyright (C) 2011 by Yehuda CATS permission, to make a deal in software without restriction, to receive a copy of this software and any person receiving the relevant documentation files ("software") for free Is provided without using any limit, copying, modifying, merge, publishing, distributing, Sublicensee and / or software For copies sell, and right to those who allow that are allowed to software under the following conditions: the above copyright notice and this permission notice shall be included in the important part of all copies or software. The software is provided "as is", without any clear warranty of any kind, in which the warranties of merchandise are not limited to the fulfillment of any special purpose and non-infringement. In any event, the authorities or copyright holders should not be held liable for any claims, damages or other liability, either due to the contract, action or otherwise, software or use or other related work related to or related to the software. @lensance * /; Var handelbar = (function () {v (code of the rest ...)  

As you can see, comments are not removed by YUI compressor and there is no one in the beginning of the code Is there a weird semicolon? Can anyone explain this? Thank you!

PS: Beginning uncompressed 'handlebars.runtime.js' is like this:

  / *! Handlers V1.3.0 Copyright (C) 2011 by Yehuda Cats to obtain a copy of this software and the relevant documentation file Free software is allowed free of charge without any limit to use, copy, modify, merge, publish, distribute, sublicense and / or software of any person ("Software"). Without the right to allow the sale of copies of the software, and to whom the software has been presented, the following conditions: All the above copyright notices and this permission notice Copies or software will be included in the important part of the software. "Software is like", W any clear information, express or implied, in which the warranties of merchandise are not limited to suitability and non-infringement for any particular purpose . In no event shall the author or copyright holder be liable for any claims, damages or other liability, whether it is contract, loss or otherwise, the software generated from or out of use or its use or other behavior. @ Lensens * / / * export handlaber * / var handlebars = (function () {// handlaber / secure-string.js var __module3__ = (function () {"strict use"; var __exports__; // our original secure string Type string string string (string) {this.string = string;} SafeString.prototype.toString = function () {return "" + this.string;}; __exports__ = SafeString; return __exports__;}) ();   

This initial comment still exists due to an exclamation mark in / *!

The objective is like using open source libraries, you want to protect the copyright notes


Comments

Popular posts from this blog

sqlite3 - UPDATE a table from the SELECT of another one -

c# - Showing a SelectedItem's Property -

javascript - Render HTML after each iteration in loop -