dsheiko/jscodesniffer — pull request #20 by bafolts (2014-09-17 22:08:07+00:00)
Title: Update for additional test case, chaining that starts with a method.

I noticed that when I had a chained method call and it started with a method instead of a variable that the ChainedMethodCallsPerLineConvention would not fire properly. This is a common use case with jQuery such as:

```js
$("#selector").css().something().something()
```

I added a case3 to support this case. It is similar to case2, but starts with a method instead of a variable.

I also updated the code to not rely on string parsing to determine if the source code was multiple lines. The .asLines() should help prevent the case where a new line character is included in a name but doesn't represent a new line.