sample skeleton application with dojo toolkit & arcgis js api v 4.30
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

32 lines
619 B

define([
'exports',
'require',
'../has'
], function(exports, require, has){
var defId = has('config-requestProvider'),
platformId;
if(has('host-browser') || has('host-webworker')){
platformId = './xhr';
}else if(has('host-node')){
platformId = './node';
/* TODO:
}else if(has('host-rhino')){
platformId = './rhino';
*/
}
if(!defId){
defId = platformId;
}
exports.getPlatformDefaultId = function(){
return platformId;
};
exports.load = function(id, parentRequire, loaded, config){
require([id == 'platform' ? platformId : defId], function(provider){
loaded(provider);
});
};
});