Permalink
Browse files

Merge pull request #17 from Tuskan360/patch-1

Fix to pass tests
  • Loading branch information...
2 parents 6f807b3 + bc6108f commit d2bc89ebdc79ff2545a6778f82d8ed2c50c49542 @tj tj committed Apr 12, 2012
Showing with 1 addition and 5 deletions.
  1. +1 −5 index.js
View
@@ -28,12 +28,8 @@ exports.namespace = function(){
, path = args.shift()
, fn = args.pop()
, self = this;
+ if(args.length) self.all(path + '*', args);
(this._ns = this._ns || []).push(path);
-
- if(args.length){
- self.all('/*', args);
- }
-
fn.call(this);
this._ns.pop();
return this;

0 comments on commit d2bc89e

Please sign in to comment.