mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-09-06 10:53:42 +00:00
Fixed: Allow 'await' for loading a bundle with the method 'loadWithDelegate:'
This commit is contained in:
@@ -207,7 +207,10 @@ var CPBundlesForURLStrings = { };
|
||||
CPLog.error("Could not find bundle: " + self);
|
||||
});
|
||||
|
||||
_bundle.load(YES);
|
||||
// Return the answer so it is possible to do 'await' on this 'loadWithDelegate:' method as the
|
||||
// load function will return a Promise. It is still possible to not do 'await' on this method
|
||||
// and that gives us the old behaviour.
|
||||
return _bundle.load(YES);
|
||||
}
|
||||
|
||||
- (CPArray)staticResourceURLs
|
||||
|
||||
Reference in New Issue
Block a user