mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-02-18 19:34:27 -05:00
trying out new arrows for function literals -> is a function, => is a bound function
This commit is contained in:
@@ -6,12 +6,12 @@ factories: {}
|
||||
loader: {
|
||||
|
||||
# Reload the coffee-script environment from source.
|
||||
reload: (topId, path) =>
|
||||
reload: (topId, path) ->
|
||||
coffeescript ||= require('coffee-script')
|
||||
factories[topId]: => coffeescript.makeNarwhalFactory(path)
|
||||
factories[topId]: -> coffeescript.makeNarwhalFactory(path)
|
||||
|
||||
# Ensure that the coffee-script environment is loaded.
|
||||
load: (topId, path) =>
|
||||
load: (topId, path) ->
|
||||
factories[topId] ||= this.reload(topId, path)
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user