Loading ...
Sorry, an error occurred while loading the content.

2588Option to tolerate var-declaration in for-loops

Expand Messages
  • maddinr92
    Sep 2, 2011
      First, thank you for your great validation tool.


      var test = function () {
      var letsHaveSomeFun = {};

      for (var entry in letsHaveSomeFun) {
      alert("do anything");

      If I try to validate this coding, I get following errors:

      Problem at line 6 character 10: Move 'var' declarations to the top of the function.
      for (var entry in letsHaveSomeFun) {
      Problem at line 6 character 10: Stopping. (57% scanned).

      Now I would need an option to skip this 2 errors.
      Is there any chance to get them?

      Thank you.
    • Show all 2 messages in this topic