21 lines
645 B
JavaScript
21 lines
645 B
JavaScript
|
//>>built
|
||
|
define("dojox/mobile/transition", [
|
||
|
"dojo/_base/Deferred",
|
||
|
"dojo/_base/config"
|
||
|
], function(Deferred, config){
|
||
|
/* summary: this is the wrapper module which load
|
||
|
* dojox/css3/transit conditionally. If mblCSS3Transition
|
||
|
* is set to 'dojox/css3/transit', it will be loaded as
|
||
|
* the module to conduct the view transition.
|
||
|
*/
|
||
|
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;
|
||
|
});
|