[NB 7.1.2 PHP] Strange results when minifing JS code

  • From: "trejder" < >
  • To:
  • Subject: [NB 7.1.2 PHP] Strange results when minifing JS code
  • Date: Fri, 27 Jul 2012 07:01:37 -0400

Hi,

I'm using two JS minifiers:

- JavaScript Crunchinator (http://www.brainjar.com/js/crunch/demo.html).
- Online YUI Compressor (http://refresh-sf.com/yui/).

Whenever I paste code minified by second one, Netbeans issues warning "Code 
has no side effects". When I minify exactly the same source code using first 
minifier and paste results to Netbeans, there is no such warning.

Sample attached.

I don't know, if this is Netbeans or minifier issue, but since both code 
seems to be working fine (and producing the very same results), I'm not sure, 
if there should be any such warning.

My friend told me, that this is normal. That most editors and IDEs displays 
incorrect notices or warnings on minified code, because it is... minified! :] 
But, even so, this is kind of interesing for me, that the very same code, 
minified using two different minifies, gaves slightly different effects in NB.

Cheers,
Trejder




Attachments: 
http://forums.netbeans.org//files/sample_620.zip



[NB 7.1.2 PHP] Strange results when minifing JS code

trejder 07/27/2012

Project Features

About this Project

PHP was started in November 2009, is owned by Petr Jiricka, and has 236 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20140418.2d69abc). © 2013, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close