Skip to content

Commit

Permalink
Fixed createClient argument issue
Browse files Browse the repository at this point in the history
  • Loading branch information
chriso committed Jul 13, 2011
1 parent a1ec421 commit 1498678
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion lib/Redback.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,10 @@ var Redback = exports.Redback = function () {
arguments[0] : redis.createClient.apply(this, arguments);
var options = arguments[1] instanceof Object ?
arguments[1] : arguments[2];
this.namespace = options.namespace || '';
this.namespace = '';
if (typeof options === 'object' && options.namespace) {
this.namespace = options.namespace;
}
}

/**
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{ "name" : "redback",
"description" : "A high-level Redis library",
"version" : "0.2.6",
"version" : "0.2.7",
"homepage" : "https://github.com/chriso/redback",
"author" : "Chris O'Hara <cohara87@gmail.com>",
"main" : "index",
Expand Down

0 comments on commit 1498678

Please sign in to comment.