Skip to content

Commit

Permalink
Make sure non-static files store their fragments.
Browse files Browse the repository at this point in the history
Reviewed  by me.
  • Loading branch information
Francisco Ryan Tolmasky I committed Oct 15, 2008
1 parent 7e28bbe commit fd23867
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Objective-J/evaluate.js
Expand Up @@ -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);

Expand Down

0 comments on commit fd23867

Please sign in to comment.