Project: aptanastudio
Issue APSTUD-4605: Inconsistent display of JS self-invoked functions in the outline
The following code generates a self-invoked function node for the function that is assigned to the variable. However, it does not create a node for the second self-invoked function, placing the internal element as they are global in the file (see outline screenshot). The outline should probably display some sort of wrapping node for those self-invoking functions all the time. {code:javascript} var someOtherTest = (function() { var api = {}; api.test = 'test'; api.someMethod = function() { var blah = 'test'; return blah; }; return api; })(); (function() { var xyz = 10; function abc() { } })(abc); {code}
Story points: 8