JS File Structure panel doesn't see all the functions Follow
Hello,
When I create a js file, WebStorm can see all the var and function declarations properly if I write the code like this:
-----------------------
var app = (function ()
{
var varA;
var varB;
function funcA()
{}
function funcB()
{}
return {
funcA: funcA()
};
})();
-----------------------
But when I split declaration and definition of app like this:
----------------------
var app;
app = (function () {...})();
----------------------
the structure panel shows only app>funcA but no vars and no funcB. Is it a bug or do I do something wrong?
(Also how do you set code to look like code in a post on this forum?)
Please sign in to leave a comment.
Looks like a bug, logged as http://youtrack.jetbrains.com/issue/WEB-13036; please vote for it
Voted! Thanks a lot for submitting the bug.