Devon Dampier Injury: Utah QB Missed Practice vs. Texas Tech
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. Its organized into nested objects.
* Top-Level paths: This is the main mapping. For example:
* ".custom": "2.6.2": means that when your code does require(".custom"),the loader will look for the file 2.6.2 (presumably a JavaScript file).
* "libs/velocity": "1.2.2": require("libs/velocity") will load 1.2.2.
* "libs/jquery/dotdotdot": "1.6.1": require("libs/jquery/dotdotdot") will load 1.6.1.
* libs: A common convention is to group third-party libraries under a libs directory. You see a lot of jQuery plugins here (e.g., libs/jquery/flexslider, libs/jquery/lazyload).
* fly: Another directory, likely containing custom or framework-specific code.
Key Observations about paths:
* Version Numbers: many of the paths include version numbers (e.g., “1.2.2”, “1.6.1”). This is very good practice. It helps prevent conflicts if you upgrade a libary and want to ensure compatibility.
* Directory Structure: The paths reflect a directory structure. For example, libs/jquery/ui/jquery.ui.datepicker suggests a file structure like:
“`
libs/
jquery/
ui/
jquery.ui.datepicker.js
“`
* External URLs: Some paths point to external URLs (e.g., "facebook": "https://connect.facebook.net/en_US/sdk.js"). This means the loader will fetch these libraries directly from the internet when they are required.
2. shim:
The shim configuration is used to tell the module loader about JavaScript libraries that don’t follow the standard asynchronous module definition (AMD) format (like RequireJS expects). These are typically older libraries that were written before AMD was common.
* 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 the loader to make SockJS available as a module.
* libs/setValueFromArray and libs/getValueFromArray: Similar to sockjs-0.3.4, these export global variables named set and get respectively.
* fly/libs/jquery.mobile-1.3.2: This depends on fly/utils/jquery-mobile-init. The version! prefix is a RequireJS feature that likely handles versioning or initialization.
* libs/backbone.marionette: This is a more complex example. It depends on jQuery, Underscore, and Backbone. It also exports a global variable named Marionette.
* fly/libs/underscore-1.5.1 and fly/libs/backbone-1.0.0: These export global variables _ and backbone respectively.
* jQuery UI tabs: This demonstrates a dependency chain. jquery.ui.tabs-1.11.4 depends on jquery.ui.core and fly/libs/jquery.widget.
* libs/jquery/flexslider-2.1: Depends on jQuery.
* **`libs
