Are you sure the Google Closure Compiler will handle code outside methods "properly". IMO, "loose code" isn't very OO, and may confuse how variable renaming and dead code removal works.
Just wondering... -Alex On 3/20/17, 3:38 PM, "Harbs" <harbs.li...@gmail.com> wrote: >Even better. > >I don’t know why I never thought of trying this stuff. > >> On Mar 21, 2017, at 12:32 AM, Justin Mclean <jus...@classsoftware.com> >>wrote: >> >> Hi, >> >>> I assume anonymous self invoking functions do not work in AS. Right? >> >> No need for a function you can just put in a static code block like so: >> >> { >> code goes here; >> } >> >> Justin >