summaryrefslogtreecommitdiff
path: root/js/dojo-1.7.2/dojox/app/module/env.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/app/module/env.js
Initial commit of intern.ccwn.org contentsHEADmaster
Diffstat (limited to 'js/dojo-1.7.2/dojox/app/module/env.js')
-rw-r--r--js/dojo-1.7.2/dojox/app/module/env.js22
1 files changed, 22 insertions, 0 deletions
diff --git a/js/dojo-1.7.2/dojox/app/module/env.js b/js/dojo-1.7.2/dojox/app/module/env.js
new file mode 100644
index 0000000..f4e8601
--- /dev/null
+++ b/js/dojo-1.7.2/dojox/app/module/env.js
@@ -0,0 +1,22 @@
+//>>built
+define("dojox/app/module/env", ["dojo/_base/declare"], function(declare){
+ return declare(null, {
+ mode: "",
+ init: function(){
+
+ //TODO BROADLY categorize the mode of the app...mobile,desktop
+ // This should be done with UA sniffing, but remember
+ // very broadly, this is for purposes of deciding
+ // which ui to render, NOT feature detection
+ /*
+ this.mode="mobile";
+ var def = this.inherited(arguments);
+
+ //just an example
+ return def.then(function(){
+ console.log("env init after inherited inits");
+ });
+ */
+ }
+ });
+});