As this is the top rated google hit and other people might not be seeing it at first in the jslint tool, there is a option called “Tolerate misordered definitions” that allows you to hide this type of error.
/*jslint latedef:false*/
More Related Contents:
- What does "use strict" do in JavaScript, and what is the reasoning behind it?
- Why avoid increment (“++”) and decrement (“–“) operators in JavaScript?
- What is the difference between `new Object()` and object literal notation?
- How to initialize an array’s length in JavaScript?
- How to fix jslint error ‘Don’t make functions within a loop.’?
- Immediate function invocation syntax
- (…()) vs. (…)() in javascript closures [duplicate]
- JavaScript function order: why does it matter?
- How to split a long regular expression into multiple lines in JavaScript?
- What’s wrong with var x = new Array();
- What is array literal notation in javascript and when should you use it?
- JSLint is suddenly reporting: Use the function form of “use strict”
- Should I use JSLint or JSHint JavaScript validation? [closed]
- Why should you not use Number as a constructor? [duplicate]
- JSlint error ‘Don’t make functions within a loop.’ leads to question about Javascript itself
- JSlint: unexpected ‘for’ [duplicate]
- JSLint error: Move all ‘var’ declarations to the top of the function
- Don’t make functions within a loop [duplicate]
- JSLint “insecure ^” in regular expression
- JSLint Expected ‘===’ and instead saw ‘==’
- Why is JSHINT complaining that this is a strict violation?
- JSLint Error: Unexpected ‘this’
- What does the JSLint error ‘body of a for in should be wrapped in an if statement’ mean?
- JSLint: was used before it was defined
- JSLint: control comments (selective ignore)
- Traverse all the Nodes of a JSON Object Tree with JavaScript
- What is TypeScript and why would I use it in place of JavaScript? [closed]
- Replace multiple strings at once
- Import functions from another js file. Javascript
- http basic authentication “log out”