Permalink
Browse files

Fix global leak and add Makefile (whoops)

  • Loading branch information...
1 parent 3d63be9 commit f2ffb5a243bdd3c1f3e7d584e1d7b233a921e0d2 Carlos Rodriguez committed Jun 18, 2012
Showing with 10 additions and 1 deletion.
  1. +9 −0 Makefile
  2. +1 −1 index.js
View
@@ -0,0 +1,9 @@
+REPORTER = spec
+
+test:
+ @NODE_ENV=test node test-singlemode
+
+test-cluster:
+ @NODE_ENV=test node test
+
+.PHONY: test test-cluster
View
@@ -155,7 +155,7 @@ commands.forEach(function(k) {
// different slaves.
var type = k[0] == 'p' ? 'psubscriptions' : 'subscriptions';
var unsub = k.indexOf('unsub') !== -1;
- for (i in args) {
+ for (var i in args) {
if (typeof args[i] == 'string') {
if (unsub) {
delete this[type][args[i]];

0 comments on commit f2ffb5a

Please sign in to comment.