Uploaded image for project: 'Aptana Studio'
  1. Aptana Studio
  2. APSTUD-4364

Javascript Outline View fails to display for Function invocations within the defining function

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: Aptana Studio 3.0.4
    • Component/s: Outline
    • Labels:
      None
    • Environment:

      Mac OSX 10.7.2

      Description

      The Javascript Outline View fails to display when an Immediate Function's invoking parentheses are defined within the function.

      For example, the following results in the Outline View failing to display anything:

      ( function( window )
      {
      	var someObject = {
      		'a' : 1
      	};
      }( this ));
      

      This particular sytax is common in JSLint (JSLint will throw an error otherwise), that is, the invoking parens within the function expression:

      (function(){
      }());
      

      The Outline View fails to display when the above is implemented.

      The work around is to move the parens outside, e.g.:

      (function(){
      })();
      

      This may seem like a trivial issue; however, it is likely other users will just assume this is a bug and not know why, which can be frustrating.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                mxia Michael Xia
                Reporter:
                efeminella Eric Feminella
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Git Integration