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.
 
 
 
 
 
 

17 lines
526 B

define(["dojo/has"], function(has){
// FIXME: this module should be replaced with a proper parser to correctly remove comments
// see extensive commentary in dojo/_base/loader.js
if(has("host-rhino")){
return function(text){
return text.replace(/(\/\*([\s\S]*?)\*\/|\/\/(.*)$)/mg, "");
// FIXME: try something like the following in rhino...
//var f = new Function(text);
//return f.toString();
};
}else{
return function(text){
return text.replace(/(\/\*([\s\S]*?)\*\/|\/\/(.*)$)/mg, "");
};
}
});