Skip to content

Commit

Permalink
Add additional featured resources before custom files to use as depen…
Browse files Browse the repository at this point in the history
…dencies.
  • Loading branch information
arendjr committed Mar 28, 2012
1 parent 9651f6e commit 7c38921
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion shermanfeature.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,18 @@ def manifestLoaded(self, moduleName, modulePath, manifest):
if moduleName != "boot":
return

insertIndex = 0
for resource in self.additionalBootResources:
included = False
for source in manifest["sources"]:
if source["path"] == "async.js" and insertIndex == 0:
insertIndex = manifest["sources"].index(source) + 1
if source["path"].endswith(resource["path"]):
included = True
break
if not included:
manifest["sources"].append(resource)
manifest["sources"].insert(insertIndex, resource)
insertIndex += 1

def sourcesLoaded(self, locale, moduleName, modulePath):
pass
Expand Down

0 comments on commit 7c38921

Please sign in to comment.