Allow resources to be satisfied asynchronously

This commit is contained in:
mihailik 2016-03-23 10:32:38 +00:00
commit 571d719b09

View file

@ -197,6 +197,12 @@ web.getResource = function(sURL, dataPost, fAsync, done)
if (done) done(sURL, sResource, nErrorCode);
return [sResource, nErrorCode];
}
else if (fAsync && typeof resources == 'function') {
resources(sURL, function(sResource, nErrorCode) {
if (done) done(sURL, sResource, nErrorCode);
});
return;
}
if (DEBUG) {
/*