Permalink
Browse files

try a different place for these

  • Loading branch information...
1 parent 668db1e commit ab0b591b720052076a150d528fa06b7d2a754262 @maxtaco committed with Dec 2, 2011
Showing with 0 additions and 83 deletions.
  1. +0 −48 lib/coffee-script/tamerun.js
  2. +0 −35 src/tamerun.coffee

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
View
@@ -1,35 +0,0 @@
-
-#=======================================================================
-
-makeDeferReturn = (obj, defer_args, id) ->
- ret = (inner_args...) ->
- defer_args?.assign_fn?.apply(null, inner_args)
- obj._fulfill id
-
- if defer_args
- ret.__tame_trace = {}
- for k in [ "parent_cb", "file", "line", "func_name" ]
- ret.__tame_trace[k] = defer_args[k]
-
- ret
-
-#=======================================================================
-# Deferrals
-#
-# A collection of Deferrals that can
-#
-exports.Deferrals = class Deferrals
-
- constructor: (k) ->
- @continuation = k
- @count = 1
-
- _fulfill : ->
- @continuation() if --@count == 0
-
- defer : (args) ->
- @count++
- self = this
- return makeDeferReturn self, args, null
-
-#=======================================================================

0 comments on commit ab0b591

Please sign in to comment.