env.js 560 B

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