- Jan 4, 2011Can I suggest there should not be allowed to be a line break between a
function and invoking it?
I had something like the following code
var a = b && (c || d)
(e || f).push(g);
where I had mistakenly missed a semi-colon and it was not picked up by
it causes an error because the result of "b && (c || d)" is a boolean and it
is being run as a function.
Would it ever be valid (or good practice) to have a newline before a
function execution or is there some other way to pick this up in JSLint?
[Non-text portions of this message have been removed]
- Next post in topic >>