Skip to content

Commit

Permalink
Added ctx as the last parameter for helpers.
Browse files Browse the repository at this point in the history
  • Loading branch information
mauricemach committed Sep 17, 2011
1 parent 23da14b commit 19350a4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/zappa.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -279,8 +279,9 @@ zappa.app = (func) ->

for name, helper of helpers
do (name, helper) ->
ctx[name] = ->
helper.apply ctx, arguments
ctx[name] = (args...) ->
args.push ctx
helper.apply ctx, args

# Names of non-input context vars.
names = []
Expand Down

0 comments on commit 19350a4

Please sign in to comment.