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

Compare with Current View Page History

« Previous Version 5 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 module pattern which could expose some of the IIFE globally.

The MIT and APP globals are defined outside of the IIFE and are used directly from wihin 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