going back to familiar operators +: is just too strange

This commit is contained in:
Jeremy Ashkenas
2009-12-25 07:31:51 -08:00
parent 968aeec523
commit 55bf0a2c61
9 changed files with 24 additions and 29 deletions

View File

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