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

Compare with Current View Page History

« Previous Version 14 Next »

JavaScript Scopes

  • window
    • APP
      • io
        • app
        • user
        • comments
        • worksets
        • workset
        • search
        • costobject
        • person
        • scenario
      • model
        • comment
        • costobject
        • scenario
        • pickList
        • preference
        • people
        • worksest
      • grids
        • forecasting
        • worksets
        • objList
        • tracking
        • cost_object_status
        • search
        • dwsearch
        • glList
      • slickGrids
        • authGrid
        • forecastingGrid
        • summaryGrid
        • trackingGrid
        • wsPeopleCoGrid
        • myWSgrid
      • dialogs
      • picklists
      • router
    • MIT
    • private application scope

The 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 APP global is defined outside of the IIFE and is used directly from within the IIFE.  The MIT scope is created as a global from within the Main() function.

Inside the main IIFE

Internal Scope

Internal Functions

CreateGrid()

Main()

TextEditorRemoveStar()

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.

  1. Main
    1. MIT scope created
  • No labels