Plato on Github
Report Home
dojo/request/default.js
Maintainability
75.62
Lines of code
32
Difficulty
12.73
Estimated Errors
0.14
Function weight
By Complexity
By SLOC
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); }); }; });