As Stefan has notified we have upgraded all the 3rd party libraries in pi repository. One of this is libraries is jslint4java and now we are using: JSLint 2011-03-07
This change comes with new enforcements in code style. One of the most common code snippet that is not valid anymore is defining a variable inside a for loop declaration. Remember you are not working with Java, so a for loop doesn't create a new scope. This example doesn't comply with the code-style we are using (enforced by JSLint) function f() { for(var i = 0; i < 10; i++) { // remember that i is defined at the scope of the function f // do something } } The new complaint way is: function f() { var i; for(i = 0; i < 10; i++ { // do something } } I updated the jslint and jscheck shell scripts so you can test all the JavaScript code in modules by running from your code repository: pi $ ./modules/org.openbravo.client.kernel/jslint/jscheck Best Regards, -- Iván Perdomo ------------------------------------------------------------------------------ WhatsUp Gold - Download Free Network Management Software The most intuitive, comprehensive, and cost-effective network management toolset available today. Delivers lowest initial acquisition cost and overall TCO of any competing solution. http://p.sf.net/sfu/whatsupgold-sd _______________________________________________ Openbravo-development mailing list Openbravo-development@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openbravo-development