1//////////////////////////////////////////////////////////////////////////////// 2//File: includes.js 3// 4//Purpose: Brings in common css and js in using AMD. 5// 6//Revision History: 7// 8//Date Who Case Desc 9//========== ============= ====== ============================================== 10//2014_02_13 E. Roberts Initial. 11//////////////////////////////////////////////////////////////////////////////// 12 13//All resources specified in a require are fetched asynchronously, which means you can't count on the order that they will come back. 14//If you have scripts that depend on other scripts, you can do that by requiring in the dependent .js in the callback function. Example is jquery and bootstrap 15//bootstrap depends on jquery, so bootstrap is fetched after jquery is loaded. If a script is depended on bootstrap, put the require(fetch) for it 16//in the callback function that runs after the bootstrap require. 17require([ 18 "jQueryPrivate", 19 "jquery-ui/ui/tooltip", 20 appRoot + "Scripts/app/vendor/gauge.js", 21 "app/vendor/bootstrap.min" 22 ], 23 function ($) { 24 window.$ = $; 25 window.jQuery = window.$; 26 } 27);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.