1
0
Fork 0
tt-rss/lib/dijit/dijit.profile.js
2013-03-18 10:26:26 +04:00

35 Zeilen
869 B
JavaScript

var profile = (function(){
var testResourceRe = /^dijit\/tests\//,
copyOnly = function(filename, mid){
var list = {
"dijit/dijit.profile":1,
"dijit/package.json":1,
"dijit/themes/claro/compile":1
};
return (mid in list) || (/^dijit\/resources\//.test(mid) && !/\.css$/.test(filename)) || /(png|jpg|jpeg|gif|tiff)$/.test(filename);
};
return {
resourceTags:{
test: function(filename, mid){
return testResourceRe.test(mid) || mid=="dijit/robot" || mid=="dijit/robotx";
},
copyOnly: function(filename, mid){
return copyOnly(filename, mid);
},
amd: function(filename, mid){
return !testResourceRe.test(mid) && !copyOnly(filename, mid) && /\.js$/.test(filename);
},
miniExclude: function(filename, mid){
return /^dijit\/bench\//.test(mid) || /^dijit\/themes\/themeTest/.test(mid);
}
}
};
})();