From 7b26a646175bc0701bd94e8ba2e29dd791a4b5c1 Mon Sep 17 00:00:00 2001 From: David Baker Date: Thu, 16 Jul 2015 10:20:31 +0100 Subject: [PATCH] camels --- lib/client.js | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/lib/client.js b/lib/client.js index 4bd229bf9..f50271099 100644 --- a/lib/client.js +++ b/lib/client.js @@ -926,16 +926,16 @@ MatrixClient.prototype.login = function(loginType, data, callback) { /** * @param {string} username * @param {string} password - * @param {string} session_id + * @param {string} sessionId * @param {Object} auth * @param {module:client.callback} callback Optional. * @return {module:client.Promise} Resolves: TODO * @return {module:http-api.MatrixError} Rejects: with an error response. */ MatrixClient.prototype.register = function(username, password, - session_id, auth, callback) { + sessionId, auth, callback) { if (auth === undefined) { auth = {}; } - if (session_id) { auth.session = session_id; } + if (sessionId) { auth.session = sessionId; } var params = { auth: auth @@ -1390,20 +1390,20 @@ function _PojoToMatrixEventMapper(plainOldJsObject) { /** * @param {string} email - * @param {string} client_secret - * @param {string} send_attempt - * @param {string} next_link Optional + * @param {string} clientSecret + * @param {string} sendAttempt + * @param {string} nextLink Optional * @param {module:client.callback} callback Optional. * @return {module:client.Promise} Resolves: TODO * @return {module:http-api.MatrixError} Rejects: with an error response. */ -MatrixClient.prototype.requestEmailToken = function(email, client_secret, - send_attempt, next_link, callback) { +MatrixClient.prototype.requestEmailToken = function(email, clientSecret, + sendAttempt, nextLink, callback) { var params = { - client_secret: client_secret, + client_secret: clientSecret, email: email, - send_attempt: send_attempt, - next_link: next_link + send_attempt: sendAttempt, + next_link: nextLink }; return this._http.idServerRequest( callback, "POST", "/validate/email/requestToken",