mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-11-19 04:59:22 +00:00
Fix StaticResource.includeURLs caching.
The cache was being shadowed by a local variable, forcing the list of includeURLs to be recreated for every call to StaticResource.includeURLs.
This commit is contained in:
1 parent
4b82cae638
commit
cc63c239f6
1 file changed
+2
-2
@@ -292,10 +292,10 @@ var includeURLs = NULL;
|
||||
|
||||
StaticResource.includeURLs = function()
|
||||
{
|
||||
if (includeURLs)
|
||||
if (includeURLs !== NULL)
|
||||
return includeURLs;
|
||||
|
||||
var includeURLs = [];
|
||||
includeURLs = [];
|
||||
|
||||
if (!global.OBJJ_INCLUDE_PATHS && !global.OBJJ_INCLUDE_URLS)
|
||||
includeURLs = ["Frameworks", "Frameworks/Debug"];
|
||||
|
||||
Reference in new issue
Block a user