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.
 
 
 
 
 
 

19 lines
478 B

define(["../buildControl"], function(bc) {
return function(resource){
if(resource.hasTest){
return 0;
}
var
hasFeatures = bc.hasFeatures = bc.hasFeatures || {},
text = resource.text,
hasRe = /[^\w\.]has\s*\(\s*["']([^"']+)["']\s*\)/g,
result;
while((result = hasRe.exec(text)) != null){
var
featureName = result[1],
sourceSet = hasFeatures[featureName] = hasFeatures[featureName] || {};
sourceSet[resource.mid] = 1;
}
return 0;
};
});