You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-06 02:15:48 +03:00
fix: always copy subscribe unsubscribe arguments
This commit is contained in:
@@ -1,5 +1,10 @@
|
|||||||
Changelog
|
# Changelog
|
||||||
=========
|
|
||||||
|
## v.2.7.2 - 14 Mar, 2017
|
||||||
|
|
||||||
|
Bugfixes
|
||||||
|
|
||||||
|
- Fixed not always copying subscribe unsubscribe arguments
|
||||||
|
|
||||||
## v.2.7.1 - 14 Mar, 2017
|
## v.2.7.1 - 14 Mar, 2017
|
||||||
|
|
||||||
|
@@ -398,7 +398,7 @@ RedisClient.prototype.subscribe = RedisClient.prototype.SUBSCRIBE = function sub
|
|||||||
callback,
|
callback,
|
||||||
i = 0;
|
i = 0;
|
||||||
if (Array.isArray(arguments[0])) {
|
if (Array.isArray(arguments[0])) {
|
||||||
arr = arguments[0];
|
arr = arguments[0].slice(0);
|
||||||
callback = arguments[1];
|
callback = arguments[1];
|
||||||
} else {
|
} else {
|
||||||
len = arguments.length;
|
len = arguments.length;
|
||||||
@@ -425,7 +425,7 @@ Multi.prototype.subscribe = Multi.prototype.SUBSCRIBE = function subscribe () {
|
|||||||
callback,
|
callback,
|
||||||
i = 0;
|
i = 0;
|
||||||
if (Array.isArray(arguments[0])) {
|
if (Array.isArray(arguments[0])) {
|
||||||
arr = arguments[0];
|
arr = arguments[0].slice(0);
|
||||||
callback = arguments[1];
|
callback = arguments[1];
|
||||||
} else {
|
} else {
|
||||||
len = arguments.length;
|
len = arguments.length;
|
||||||
@@ -453,7 +453,7 @@ RedisClient.prototype.unsubscribe = RedisClient.prototype.UNSUBSCRIBE = function
|
|||||||
callback,
|
callback,
|
||||||
i = 0;
|
i = 0;
|
||||||
if (Array.isArray(arguments[0])) {
|
if (Array.isArray(arguments[0])) {
|
||||||
arr = arguments[0];
|
arr = arguments[0].slice(0);
|
||||||
callback = arguments[1];
|
callback = arguments[1];
|
||||||
} else {
|
} else {
|
||||||
len = arguments.length;
|
len = arguments.length;
|
||||||
@@ -481,7 +481,7 @@ Multi.prototype.unsubscribe = Multi.prototype.UNSUBSCRIBE = function unsubscribe
|
|||||||
callback,
|
callback,
|
||||||
i = 0;
|
i = 0;
|
||||||
if (Array.isArray(arguments[0])) {
|
if (Array.isArray(arguments[0])) {
|
||||||
arr = arguments[0];
|
arr = arguments[0].slice(0);
|
||||||
callback = arguments[1];
|
callback = arguments[1];
|
||||||
} else {
|
} else {
|
||||||
len = arguments.length;
|
len = arguments.length;
|
||||||
@@ -510,7 +510,7 @@ RedisClient.prototype.psubscribe = RedisClient.prototype.PSUBSCRIBE = function p
|
|||||||
callback,
|
callback,
|
||||||
i = 0;
|
i = 0;
|
||||||
if (Array.isArray(arguments[0])) {
|
if (Array.isArray(arguments[0])) {
|
||||||
arr = arguments[0];
|
arr = arguments[0].slice(0);
|
||||||
callback = arguments[1];
|
callback = arguments[1];
|
||||||
} else {
|
} else {
|
||||||
len = arguments.length;
|
len = arguments.length;
|
||||||
@@ -537,7 +537,7 @@ Multi.prototype.psubscribe = Multi.prototype.PSUBSCRIBE = function psubscribe ()
|
|||||||
callback,
|
callback,
|
||||||
i = 0;
|
i = 0;
|
||||||
if (Array.isArray(arguments[0])) {
|
if (Array.isArray(arguments[0])) {
|
||||||
arr = arguments[0];
|
arr = arguments[0].slice(0);
|
||||||
callback = arguments[1];
|
callback = arguments[1];
|
||||||
} else {
|
} else {
|
||||||
len = arguments.length;
|
len = arguments.length;
|
||||||
@@ -565,7 +565,7 @@ RedisClient.prototype.punsubscribe = RedisClient.prototype.PUNSUBSCRIBE = functi
|
|||||||
callback,
|
callback,
|
||||||
i = 0;
|
i = 0;
|
||||||
if (Array.isArray(arguments[0])) {
|
if (Array.isArray(arguments[0])) {
|
||||||
arr = arguments[0];
|
arr = arguments[0].slice(0);
|
||||||
callback = arguments[1];
|
callback = arguments[1];
|
||||||
} else {
|
} else {
|
||||||
len = arguments.length;
|
len = arguments.length;
|
||||||
@@ -593,7 +593,7 @@ Multi.prototype.punsubscribe = Multi.prototype.PUNSUBSCRIBE = function punsubscr
|
|||||||
callback,
|
callback,
|
||||||
i = 0;
|
i = 0;
|
||||||
if (Array.isArray(arguments[0])) {
|
if (Array.isArray(arguments[0])) {
|
||||||
arr = arguments[0];
|
arr = arguments[0].slice(0);
|
||||||
callback = arguments[1];
|
callback = arguments[1];
|
||||||
} else {
|
} else {
|
||||||
len = arguments.length;
|
len = arguments.length;
|
||||||
|
Reference in New Issue
Block a user