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:
Alexander Ljungberg committed 2011-10-21 16:06:52 +01:00
1 parent 4b82cae638
commit cc63c239f6
1 file changed
+2 -2
+2 -2
View File
@@ -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"];