Make sure non-static files store their fragments.

Reviewed  by me.
This commit is contained in:
Francisco Ryan Tolmasky I committed 2008-10-14 22:23:23 -07:00
1 parent 7e28bbeee9
commit fd23867c93
1 file changed
+4 -1
+4 -1
View File
@@ -201,7 +201,10 @@ function fragment_evaluate_file(aFragment)
objj_included_files[aFile.path] = YES;
// Grab the file's fragments if it has them, or preprocess it if not.
var fragments = aFile.fragments ? aFile.fragments : objj_preprocess(aFile.contents, aFile.bundle, aFile),
if (!aFile.fragments)
aFile.fragments = objj_preprocess(aFile.contents, aFile.bundle, aFile);
var fragments = aFile.fragments,
count = fragments.length,
directory = aFile.path.substr(0, aFile.path.lastIndexOf('/') + 1);