File tree Expand file tree Collapse file tree 1 file changed +1
-31
lines changed
Expand file tree Collapse file tree 1 file changed +1
-31
lines changed Original file line number Diff line number Diff line change 11// noinspection ThisExpressionReferencesGlobalObjectJS,JSUnusedLocalSymbols,DuplicatedCode
22( function ( global ) {
3- // noinspection JSUnusedLocalSymbols,DuplicatedCode
4- define ( 'optional' , [ ] , {
5- load : function ( name , req , onload , config ) {
6- var onLoadSuccess = function ( moduleInstance ) {
7- onload ( moduleInstance ) ;
8- } ;
9-
10- var onLoadFailure = function ( err ) {
11- var failedId = err . requireModules && err . requireModules [ 0 ] ;
12- global . console . warn ( 'Could not load optional module: ' + failedId ) ;
13-
14- requirejs . undef ( failedId ) ;
15-
16- // noinspection JSRedundantSwitchStatement
17- switch ( failedId ) {
18- default :
19- define ( failedId , [ ] , function ( ) { return { } ; } ) ;
20- break ;
21- }
22-
23- req ( [ failedId ] , onLoadSuccess ) ;
24- } ;
25-
26- req ( [ name ] , onLoadSuccess , onLoadFailure ) ;
27- } ,
28- normalize : function ( name , normalize ) {
29- return normalize ( name ) ;
30- }
31- } ) ;
32-
333 // noinspection JSFileReferences
344 requirejs . config ( {
355 paths : $sys . lib ,
5121 requirejs ( [
5222 'jquery' ,
5323 'jquery-ui'
54- ] , function ( $ , ui , ga ) {
24+ ] , function ( $ , ui ) {
5525 $ ( function ( ) {
5626 var $html = $ ( 'html' ) ;
5727 var $body = $ ( 'body' ) ;
You can’t perform that action at this time.
0 commit comments