You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 7 Next »

JavaScript Scopes

  • window
    • APP
    • MIT
    • private application scope

There majority of the application is contained within an immediately invoked function expression [aka IIFE].  The IIFE is in place without using the _module pattern which could expose some of the IIFE globally if that was needed.

The MIT and APP globals are defined outside of the IIFE and are used directly from within the IIFE.

Inside the main IIFE

Internal Scope

Internal Functions

App Lifecycle

The IIFE Main() function is called via a method call that is chained to the IIFE.  The call to Main() starts up the application.

  • No labels