From 5d21890b9da774f7325d41b89c96ea314a470bef Mon Sep 17 00:00:00 2001 From: murgatroid99 Date: Tue, 9 May 2017 15:10:51 -0700 Subject: [PATCH] Switch 'apply' for 'call' in pass-through functions --- src/client.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/client.js b/src/client.js index 75567c69..43502da6 100644 --- a/src/client.js +++ b/src/client.js @@ -899,7 +899,7 @@ exports.makeClientConstructor = function(methods, serviceName, * @return {Channel} The channel */ exports.getClientChannel = function(client) { - return Client.prototype.getChannel.apply(client); + return Client.prototype.getChannel.call(client); }; /** @@ -915,7 +915,7 @@ exports.getClientChannel = function(client) { * to connect. */ exports.waitForClientReady = function(client, deadline, callback) { - Client.prototype.waitForReady.apply(client, deadline, callback); + Client.prototype.waitForReady.call(client, deadline, callback); }; /**