Hi there I just tried out: https://github.com/victorporof/Sublime-JSHint and it points out that we are mixing single and double quotes a lot in JS :-) (guilty as charged)
The Google style guide: http://google-styleguide.googlecode.com/svn/trunk/javascriptguide.xml says to prefer ' over " which I think we should follow as a general rule: http://google-styleguide.googlecode.com/svn/trunk/javascriptguide.xml?showone=Strings#Strings But be aware: single quotes (') is NOT allowed for strings in JSON, though it works in Chrome: A string is a sequence of zero or more Unicode characters, wrapped in double quotes, using backslash escapes. So, please use double quotes for JSON strings. That also makes it possible to generate JSON from JS: msg = '{ "name": "horse" }'; Kenneth -- Kenneth Rohde Christiansen Web Platform Architect, Intel Corporation. Phone +45 4294 9458 ﹆﹆﹆ _______________________________________________ Crosswalk-dev mailing list [email protected] https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-dev
