fixing up narwhal integration (again)

This commit is contained in:
Jeremy Ashkenas
2009-12-30 15:05:05 -05:00
parent f93e552cb3
commit 9e3ef42c63
4 changed files with 40 additions and 9 deletions

View File

@@ -6,13 +6,13 @@ factories: {}
loader: {
# Reload the coffee-script environment from source.
reload: topId =>
reload: topId, path =>
coffeescript ||= require('coffee-script')
factories[topId]: => coffeescript
factories[topId]: => coffeescript.makeNarwhalFactory(path)
# Ensure that the coffee-script environment is loaded.
load: topId =>
factories[topId] ||= this.reload(topId)
load: topId, path =>
factories[topId] ||= this.reload(topId, path)
}