Debian Codegraph @

dojox/app/module/env.js

raw symbols SCIP
1 define(["dojo/_base/declare"], function(declare){
2 return declare(null, {
3 mode: "",
4 init: function(){
5
6 //TODO BROADLY categorize the mode of the app...mobile,desktop
7 // This should be done with UA sniffing, but remember
8 // very broadly, this is for purposes of deciding
9 // which ui to render, NOT feature detection
10 /*
11 this.mode="mobile";
12 var def = this.inherited(arguments);
13
14 //just an example
15 return def.then(function(){
16 console.log("env init after inherited inits");
17 });
18 */
19 }
20 });
21 });