Permalink
Browse files

this / self swap, version bump

  • Loading branch information...
1 parent 2ee6f56 commit 99aa221be249eef83fe7e6540ed79828a15eeece @kieran committed Aug 13, 2011
Showing with 5 additions and 5 deletions.
  1. +4 −4 lib/router.js
  2. +1 −1 package.json
View
@@ -53,28 +53,28 @@ var Router = function() {
//
// router.match( path, 'GET' )
this.get = function( path ){
- return this.match(path, 'GET')
+ return self.match(path, 'GET')
}
// ### router.put( path )
// equivalent to
//
// router.match( path, 'PUT' )
this.put = function( path ){
- return this.match(path, 'PUT')
+ return self.match(path, 'PUT')
}
// ### router.post( path )
// equivalent to
//
// router.match( path, 'POST' )
this.post = function( path ){
- return this.match(path, 'POST')
+ return self.match(path, 'POST')
}
// ### router.delete( path )
// equivalent to
//
// router.match( path, 'DELETE' )
this.delete = function( path ){
- return this.match(path, 'DELETE')
+ return self.match(path, 'DELETE')
}
// router.resource( controller )
View
@@ -1,7 +1,7 @@
{
"name": "barista",
"description": "URL router & generator, similar to Rails / merb",
- "version": "0.0.2",
+ "version": "0.0.3",
"author": "Kieran Huggins <kieran@kieran.ca>",
"repository": "git://github.com/kieran/barista",
"main": "./index.js",

0 comments on commit 99aa221

Please sign in to comment.