Skip to content
Browse files

slightly more straightforward expression

  • Loading branch information...
1 parent 5f8ce65 commit 1f7e8bdf5eee96181930a7a8ed907b55365b0d86 @mental committed Jan 17, 2011
Showing with 2 additions and 4 deletions.
  1. +2 −4 src/Actor.coffee
View
6 src/Actor.coffee
@@ -299,12 +299,10 @@ setErrorHandler = (callback) ->
error_handler = callback
sendback = (f) ->
- actor_id = self()
- sendbackTo actor_id, f
+ sendbackTo self(), f
sendbackTo = (actor_id, f) ->
- (args...) ->
- WebActors.send actor_id, f.apply(this, args)
+ -> WebActors.send actor_id, f.apply(this, arguments)
WebActors.spawn = spawn
WebActors.spawnLinked = spawnLinked

0 comments on commit 1f7e8bd

Please sign in to comment.
Something went wrong with that request. Please try again.