Browse files

[[FIX]] Move helper methods to `state` object

Declare these helper functions as part of the definition of the `state`
object. This makes these methods easier to discover. There is no need to
re-instantiate the methods when the state object is re-setand, so this
approach is slightly more efficient.

Remove unnecessary parameters and replace necessary boolean parameter
with an options object.
  • Loading branch information...
jugglinmike committed Apr 13, 2015
1 parent 51059bd commit 678da76e6488eb20a8bd5449f47f41da5ea5eb54
Showing with 81 additions and 82 deletions.
  1. +54 −81 src/jshint.js
  2. +1 −1 src/lex.js
  3. +26 −0 src/state.js
Oops, something went wrong.

0 comments on commit 678da76

Please sign in to comment.