I have a small problem with jQuery .filter() function
This construction does not work (I get an empty set of elements):
jQuery( selector )
.filter( function() {
return
long_condition_1 &&
long_condition_2 &&
...
long_condition_N
} );
And this construction works for me:
jQuery( selector )
.filter( function() {
return long_condition_1 &&
long_condition_2 &&
...
long_condition_N
} );
Why is there a need to set a space character after return
keyword?
I use npp code editor. I tried to set UNIX-format
for line endings and WIN-format
- same result for both.