source: Dev/branches/rest-dojo-ui/client/dojox/mobile/transition.js @ 256

Last change on this file since 256 was 256, checked in by hendrikvanantwerpen, 13 years ago

Reworked project structure based on REST interaction and Dojo library. As
soon as this is stable, the old jQueryUI branch can be removed (it's
kept for reference).

File size: 608 bytes
Line 
1define([
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});
Note: See TracBrowser for help on using the repository browser.