Closed GoogleCodeExporter closed 8 years ago
There should be a semicolon after the close paren on the inner function as well
as
the one at the end of the whole statement, as below. I think js2-mode is
handling
this correctly.
$A(idsToExpand).each(function(id) {Element.setClassName(id, 'collapsed',
!value);});
Original comment by dereksla...@gmail.com
on 23 Jul 2008 at 7:43
I believe it's giving you a warning underline, not an error underline. The
semicolon
should be there, but doesn't have to be.
The mode it just trying to take away some of the rope that ECMA handed you.
Original comment by waw...@gmail.com
on 5 Oct 2008 at 1:49
Strictly speaking, the warning is correct.
Personally I find it annoying enough that I added a customization setting,
`js2-missing-semi-one-line-override`, that squelches the warning for 1-line
functions
that are missing a final semi inside the close-curly. If you set that variable
to
`t` the warning will go away.
Original comment by steve.ye...@gmail.com
on 23 Jul 2009 at 11:21
Original issue reported on code.google.com by
mixan...@gmail.com
on 22 Jul 2008 at 12:07