YUKI Hiroshi
null+****@clear*****
Fri Jan 18 16:51:59 JST 2013
YUKI Hiroshi 2013-01-18 16:51:59 +0900 (Fri, 18 Jan 2013) New Revision: 8d25b1971441b53293e4efbe7c38ecd2a03a7eac https://github.com/groonga/express-kotoumi/commit/8d25b1971441b53293e4efbe7c38ecd2a03a7eac Log: Rename property: replyTo => inReplyTo Modified files: lib/backend-adaptor.js test/backend-adaptor.test.js Modified: lib/backend-adaptor.js (+4 -4) =================================================================== --- lib/backend-adaptor.js 2013-01-18 15:15:14 +0900 (77bb252) +++ lib/backend-adaptor.js 2013-01-18 16:51:59 +0900 (07a6679) @@ -69,9 +69,9 @@ Connection.prototype._initReceiver = function() { Connection.prototype._handleMessage = function(envelope) { this.emit('message', envelope); - var replyTo = envelope['replyTo']; - if (replyTo) { - this.emit('replyTo:' + replyTo, envelope); + var inReplyTo = envelope['inReplyTo']; + if (inReplyTo) { + this.emit('inReplyTo:' + inReplyTo, envelope); } }; @@ -97,7 +97,7 @@ Connection.prototype.emitMessage = function(type, body, callback) { body: body }; if (callback) { - this.once('replyTo:' + id, callback); + this.once('inReplyTo:' + id, callback); } this._sender.emit('message', envelope); return envelope; Modified: test/backend-adaptor.test.js (+1 -1) =================================================================== --- test/backend-adaptor.test.js 2013-01-18 15:15:14 +0900 (a1d4874) +++ test/backend-adaptor.test.js 2013-01-18 16:51:59 +0900 (4f4a17a) @@ -80,7 +80,7 @@ suite('Connection', function() { var response = { id: now.getTime(), date: now.toISOString(), - replyTo: message.id, + inReplyTo: message.id, statusCode: 200, type: 'testResponse', body: 'first call' -------------- next part -------------- HTML����������������������������...Download