Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[minor] fixed bad rebining issue

  • Loading branch information...
commit a9d9a3cef997bd3e1b8e0bf78935c36025383b3d 1 parent 77588af
@jamesonjlee jamesonjlee authored
Showing with 2 additions and 2 deletions.
  1. +1 −1  lib/nssocket.js
  2. +1 −1  package.json
View
2  lib/nssocket.js
@@ -218,7 +218,7 @@ NsSocket.prototype.send = function send(tag, data, callback) {
if (typeof tag === 'string') {
tag = [tag];
}
- if (typeof data === 'callback') {
+ if (!data || typeof data === 'function') {
callback = data;
data = tag.pop();
}
View
2  package.json
@@ -1,7 +1,7 @@
{
"name": "nssocket",
"description": "Namespaced sockets with automatic buffering.",
- "version": "0.2.3",
+ "version": "0.2.5",
"author": {"name":"hij1nx", "email":"hij1nx@me.com"},
"maintainers": [
{ "name": "hij1nx", "email": "hij1nx@nodejitsu.com" },
Please sign in to comment.
Something went wrong with that request. Please try again.