Seahawks vs 49ers Prediction: Odds, Time, Date & NFL Week 18 Picks
- This is a configuration file, likely for a JavaScript module loader like RequireJS.Let's break down what it contains:
- This section defines the mapping between logical module names (used in require() calls in your JavaScript code) and the actual file paths where those modules are located.It's organized...
- Such as: * ".custom": "2.6.2": Means that when your code does require(".custom"), the loader will look for a file named 2.6.2 (likely a JavaScript file) in the...
This is a configuration file, likely for a JavaScript module loader like RequireJS.Let’s break down what it contains:
1. paths:
This section defines the mapping between logical module names (used in require() calls in your JavaScript code) and the actual file paths where those modules are located.It’s organized into nested objects.
* Top-Level paths: This is the main mapping. Such as:
* ".custom": "2.6.2": Means that when your code does require(".custom"), the loader will look for a file named 2.6.2 (likely a JavaScript file) in the base URL (which is usually defined elsewhere in the RequireJS configuration).
* "libs/velocity": "1.2.2": require("libs/velocity") will load 1.2.2.
* "libs/jquery/ui/jquery.ui.datepicker": "1.11.4": require("libs/jquery/ui/jquery.ui.datepicker") will load 1.11.4.
* structure: The paths are organized hierarchically, reflecting the directory structure where the files are stored.This makes it easier to manage dependencies. Such as, all jQuery UI components are under libs/jquery/ui/.
2. shim:
This section is crucial for dealing with libraries that don’t follow the standard AMD (Asynchronous module Definition) format that RequireJS expects. Many older or customary JavaScript libraries are not designed to be loaded as modules. shim tells RequireJS how to load these libraries and their dependencies.
* liveconnection/managers/connection: This module depends on liveconnection/libs/sockjs-0.3.4. The deps array lists the dependencies.
* liveconnection/libs/sockjs-0.3.4: this library exports a global variable named SockJS. The exports property tells RequireJS to assign the value of SockJS to the module’s return value.
* libs/setValueFromArray and libs/getValueFromArray: These also export global variables named set and get respectively.
* fly/libs/backbone.marionette: This depends on jQuery, Underscore, and Backbone. It also exports marionette.
* fly/libs/underscore-1.5.1 and fly/libs/backbone-1.0.0: These define exports for _ and Backbone respectively.
* libs/jquery/ui/jquery.ui.tabs-1.11.4: This depends on jQuery, the jQuery UI core, and fly/libs/jquery.widget.
* libs/jquery/flexslider-2.1: Depends on jQuery.
* libs/dataTables.fixedColumns-3.0.4 and libs/dataTables.fixedHeader-2.1.2: Depend on jQuery and DataTables.
* https://sports.cbsimg.net/js/CBSi/app/VideoPlayer/AdobePass-min.js: Depends on https://sports.cbsimg.net/js/CBSi/util/Utils-min.js. This shows that external URLs can also be shimmed.
3. map:
This section defines aliases or mappings for modules. it’s used to resolve module names to different paths or versions.
* "*":{"adobe-pass":"https://sports.cbsimg.net/js/CBSi/app/VideoPlayer/AdobePass-min.js", ...}: This means that whenever any module tries to require("adobe-pass"), it will actually load https://sports.cbsimg.net/js/CBSi/app/VideoPlayer/AdobePass-min.js. The "*" indicates that this mapping applies globally.
* `”facebook
