handle the urlArgs with a function ,give each file it's own urlArgs 

handle the urlArgs with a function ,give each file it's own urlArgs 
Here you have code duplication you should avoid this.

Try this:
```javascript
var urlArgs = '';

switch (typeof config.urlArgs) {
    case 'function':
        urlArgs = config.urlArgs.call(config, moduleName, url);
        break;
    case 'string':
        urlArgs = config.urlArgs;
        break;
}

if (!urlArgs) {
    return url;
}
return url + ((url.indexOf('?') === -1 ? '?' : '&') + urlArgs);
```