Merge pull request #32 from mihailik/patch-2
Allow resources to be satisfied asynchronously
This commit is contained in:
commit
0ce8229a0e
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);
|
if (done) done(sURL, sResource, nErrorCode);
|
||||||
return [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) {
|
if (DEBUG) {
|
||||||
/*
|
/*
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue