coffeelint/src/coffeelint.coffee in coffeelint-0.0.4 vs coffeelint/src/coffeelint.coffee in coffeelint-0.0.5

- old
+ new

@@ -400,10 +400,10 @@ # Return an error if the given token fails a lint check, false # otherwise. lintToken : (token) -> [type, value, lineNumber] = token - lineNumber = lineNumber["first_line"] if lineNumber["first_line"]? + lineNumber = lineNumber.first_line if lineNumber?.first_line? @tokensByLine[lineNumber] ?= [] @tokensByLine[lineNumber].push(token) # CoffeeScript loses line numbers of interpolations and multi-line # regexes, so fake it by using the last line number we know. @lineNumber = lineNumber or @lineNumber or 0