UI dependency graph cleanup

This commit is contained in:
kayone
2013-10-08 18:43:41 -07:00
parent 86ea33b638
commit 4948d0608b
87 changed files with 1119 additions and 735 deletions

View File

@@ -0,0 +1,25 @@
define(function () {
'use strict';
return {
load: function (name, parentRequire, onload, config) {
if(config.isBuild){
return onload();
}
var resource = name.split('!')[0];
var url = window.NzbDrone.ApiRoot + '/' + resource;
$.ajax({
url: url
}).done(function (data) {
onload(data);
}).error(function (xhr, status, error) {
onload.error({
xhr : xhr,
status: status,
error : error});
});
}
};
});