Permalink
Browse files

passed 'next' reference to context

  • Loading branch information...
kadirpekel committed Jul 13, 2011
1 parent e2d1c20 commit 763dcc76158b28dd3252459e13b27d42c9c33c3a
Showing with 5 additions and 5 deletions.
  1. +4 −4 lib/coffeemate.coffee
  2. +1 −1 package.json
View
@@ -3,7 +3,7 @@
# MIT Licensed
# version info
-VERSION = '0.4.3'
+VERSION = '0.4.4'
# Module dependencies
@@ -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
#
@@ -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
View
@@ -1,5 +1,5 @@
{
- "version": "0.4.3",
+ "version": "0.4.4",
"author": "Kadir Pekel <kadirpekel@gmail.com>",
"name": "coffeemate",
"description": "the coffee creamer!",

0 comments on commit 763dcc7

Please sign in to comment.