js: Fix more lint.

This commit is contained in:
Florian Bruhin 2015-05-12 07:15:37 +02:00
parent 28ec7b4698
commit a960658617
2 changed files with 3 additions and 3 deletions

View File

@ -20,7 +20,6 @@ rules:
brace-style: [2, "1tbs", {"allowSingleLine": true}]
comma-style: [2, "last"]
consistent-this: [2, "self"]
func-names: 2
func-style: [2, "declaration"]
indent: [2, 4, {"indentSwitchCase": true}]
linebreak-style: [2, "unix"]
@ -33,7 +32,7 @@ rules:
operator-linebreak: [2, "after"]
space-after-keywords: [2, "always"]
space-before-blocks: [2, "always"]
space-before-function-paren: [2, {"anonymous": "always", "named": "never"}]
space-before-function-paren: [2, {"anonymous": "never", "named": "never"}]
space-in-brackets: [2, "never"]
space-in-parens: [2, "never"]
space-unary-ops: [2, {"words": true, "nonwords": false}]
@ -45,3 +44,4 @@ rules:
no-bitwise: 2
no-reserved-keys: 2
global-strict: 0
quotes: 0

View File

@ -87,7 +87,7 @@ function isElementInViewport(node) {
var node;
var textNodes = [];
var el;
while (node = walker.nextNode()) {
while ((node = walker.nextNode())) {
if (node.nodeType === 3 && node.data.trim() !== '') {
textNodes.push(node);
}