Skip to content
This repository has been archived by the owner on Apr 9, 2020. It is now read-only.

Commit

Permalink
passed 'next' reference to context
Browse files Browse the repository at this point in the history
  • Loading branch information
kadirpekel committed Jul 13, 2011
1 parent e2d1c20 commit 763dcc7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions lib/coffeemate.coffee
Expand Up @@ -3,7 +3,7 @@
# MIT Licensed

# version info
VERSION = '0.4.3'
VERSION = '0.4.4'

# Module dependencies

Expand All @@ -22,7 +22,7 @@ class CoffeemateContext
# @param {Object} resp
# @param {Object} resp
# @api public
constructor: (@cnt, @req, @resp) ->
constructor: (@cnt, @req, @resp, @next) ->

# Simple built-in extension that sends http redirect to client
#
Expand Down Expand Up @@ -134,8 +134,8 @@ class Coffeemate extends connect.HTTPServer
@use root, @middleware.router (app) ->
for route in routes
do (route) ->
app[route.method] route.pattern, (req, resp) ->
route.callback.apply new CoffeemateContext(self, req, resp)
app[route.method] route.pattern, (req, resp, next) ->
route.callback.apply new CoffeemateContext(self, req, resp, next)

# Override 'connect.HTTPServer.listen' to create a pre-hook space for
# preparing router definitions
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,5 +1,5 @@
{
"version": "0.4.3",
"version": "0.4.4",
"author": "Kadir Pekel <kadirpekel@gmail.com>",
"name": "coffeemate",
"description": "the coffee creamer!",
Expand Down

0 comments on commit 763dcc7

Please sign in to comment.