You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
676 B
23 lines
676 B
define([ |
|
"dojo/_base/Deferred", |
|
"dojo/_base/config" |
|
], function(Deferred, config){ |
|
/*===== |
|
return { |
|
// summary: |
|
// This is the wrapper module which loads |
|
// dojox/css3/transit conditionally. If mblCSS3Transition |
|
// is set to 'dojox/css3/transit', it will be loaded as |
|
// the module to conduct view transitions, otherwise this module returns null. |
|
}; |
|
=====*/ |
|
if(config.mblCSS3Transition){ |
|
//require dojox/css3/transit and resolve it as the result of transitDeferred. |
|
var transitDeferred = new Deferred(); |
|
require([config.mblCSS3Transition], function(transit){ |
|
transitDeferred.resolve(transit); |
|
}); |
|
return transitDeferred; |
|
} |
|
return null; |
|
});
|
|
|