transition.js 635 B

12345678910111213141516171819
  1. define("dojox/mobile/transition", [
  2. "dojo/_base/Deferred",
  3. "dojo/_base/config"
  4. ], function(Deferred, config){
  5. /* summary: this is the wrapper module which load
  6. * dojox/css3/transit conditionally. If mblCSS3Transition
  7. * is set to 'dojox/css3/transit', it will be loaded as
  8. * the module to conduct the view transition.
  9. */
  10. if(config['mblCSS3Transition']){
  11. //require dojox/css3/transit and resolve it as the result of transitDeferred.
  12. var transitDeferred = new Deferred();
  13. require([config['mblCSS3Transition']], function(transit){
  14. transitDeferred.resolve(transit);
  15. });
  16. return transitDeferred;
  17. }
  18. return null;
  19. });