Allow resources to be satisfied asynchronously
This commit is contained in:
parent
fec1440718
commit
571d719b09
1 changed files with 6 additions and 0 deletions
|
|
@ -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) {
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in a new issue