mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-12-01 02:42:03 +00:00
Make sure non-static files store their fragments.
Reviewed by me.
This commit is contained in:
1 parent
7e28bbeee9
commit
fd23867c93
1 file changed
+4
-1
@@ -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);
|
||||
|
||||
|
||||
Reference in new issue
Block a user