mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-02-19 03:44:23 -05:00
still some kinks to work out -- mid-expression blocks
This commit is contained in:
8
test/fixtures/generation/each.coffee
vendored
8
test/fixtures/generation/each.coffee
vendored
@@ -6,9 +6,9 @@ _.each: obj, iterator, context =>
|
||||
if obj.forEach
|
||||
obj.forEach(iterator, context)
|
||||
else if _.isArray(obj) or _.isArguments(obj)
|
||||
iterator.call(context, item, i, obj) for item, i in obj.
|
||||
iterator.call(context, item, i, obj) for item, i in obj
|
||||
else
|
||||
iterator.call(context, obj[key], key, obj) for key in _.keys(obj)..
|
||||
iterator.call(context, obj[key], key, obj) for key in _.keys(obj)
|
||||
catch e
|
||||
throw e if e isnt breaker.
|
||||
obj.
|
||||
throw e if e isnt breaker
|
||||
obj
|
||||
Reference in New Issue
Block a user