blob: f4e86019021338a664e2085de2ff8d81d59d8b13 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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");
});
*/
}
});
});
|