Debian Codegraph @

dojox/app/tests/doh/hasConfigTest/modelApp.js

raw symbols SCIP
1 require(["dojo/_base/window","dojox/app/main", "dojox/json/ref", "dojo/text!./config.json", "dojox/app/utils/config", "dojo/sniff"],
2 function(win, Application, jsonRef, config, configUtil, has){
3 var originalConfig = jsonRef.fromJson(config);
4 var isTablet = false;
5 var width = window.innerWidth || document.documentElement.clientWidth;
6 if(width > 600){
7 isTablet = true;
8 }
9
10 has.add("testTrue", true);
11 has.add("phone", !isTablet);
12
13 // using originalConfig here because main.js will automatically process the has
14 Application(originalConfig);
15 });