YUKI Hiroshi
null+****@clear*****
Fri Feb 8 18:59:21 JST 2013
YUKI Hiroshi 2013-02-08 18:59:21 +0900 (Fri, 08 Feb 2013) New Revision: 048507f7a1ee25501c9ef357e92aa7ab91607639 https://github.com/groonga/express-kotoumi/commit/048507f7a1ee25501c9ef357e92aa7ab91607639 Log: Shorten argument name of callback: responseMesssage => envelope Modified files: lib/frontend/rest-adaptor.js Modified: lib/frontend/rest-adaptor.js (+3 -3) =================================================================== --- lib/frontend/rest-adaptor.js 2013-02-08 17:25:23 +0900 (65846c0) +++ lib/frontend/rest-adaptor.js 2013-02-08 18:59:21 +0900 (71d2985) @@ -19,13 +19,13 @@ function createHandler(params) { connection.emitMessage( messageType, body, - function(error, responseMessage) { + function(error, envelope) { if (error) { - var body = responseMessage && responseMessage.body || null; + var body = envelope && envelope.body || null; response.contentType('application/json'); response.send(body, error); } else { - var body = responseMessage.body; + var body = envelope.body; if (definition.toClient) { var result = definition.toClient(commandName, body); body = result[1]; -------------- next part -------------- HTML����������������������������...Download