summaryrefslogtreecommitdiff
path: root/js/dojo-1.7.2/dojox/mobile/transition.js
diff options
context:
space:
mode:
authorTristan Zur <tzur@web.web.ccwn.org>2014-03-27 22:27:47 +0100
committerTristan Zur <tzur@web.web.ccwn.org>2014-03-27 22:27:47 +0100
commitb62676ca5d3d6f6ba3f019ea3f99722e165a98d8 (patch)
tree86722cb80f07d4569f90088eeaea2fc2f6e2ef94 /js/dojo-1.7.2/dojox/mobile/transition.js
Initial commit of intern.ccwn.org contentsHEADmaster
Diffstat (limited to 'js/dojo-1.7.2/dojox/mobile/transition.js')
-rw-r--r--js/dojo-1.7.2/dojox/mobile/transition.js20
1 files changed, 20 insertions, 0 deletions
diff --git a/js/dojo-1.7.2/dojox/mobile/transition.js b/js/dojo-1.7.2/dojox/mobile/transition.js
new file mode 100644
index 0000000..c4f032a
--- /dev/null
+++ b/js/dojo-1.7.2/dojox/mobile/transition.js
@@ -0,0 +1,20 @@
+//>>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;
+});