If you have a JS function, e.g. (nonsense content here)
- Code: Select all
function foo()
{
var a = "hello";
a = a + a;
// alert(a);
return a;
}
If you collapse on the opening bracket, it will collapse to:
- Code: Select all
function foo()
{ (..)
// alert(a);
return a;
}
I guess this is because the // is at the same level as the opening bracket, and it collapses until it finds something else at that position, but in this case it is not the "}", but rather the "/" of "//". (It collapses nicely if you place some whitespace before //.)
Is this a bug, or just a side-effect of how the collapse functionality works?