YUKI Hiroshi
null+****@clear*****
Wed Oct 22 15:57:56 JST 2014
YUKI Hiroshi 2014-10-22 15:57:56 +0900 (Wed, 22 Oct 2014) New Revision: 4f0db214a4f1b61526ee58a1c41dafa001778319 https://github.com/droonga/express-droonga/commit/4f0db214a4f1b61526ee58a1c41dafa001778319 Message: Fix typo thennable => then able ^ Modified files: lib/droonga-protocol/connection.js lib/droonga-protocol/receiver.js test/droonga-protocol/connection.test.js Modified: lib/droonga-protocol/connection.js (+1 -1) =================================================================== --- lib/droonga-protocol/connection.js 2014-10-18 00:08:50 +0900 (3b67a74) +++ lib/droonga-protocol/connection.js 2014-10-22 15:57:56 +0900 (4af3908) @@ -225,7 +225,7 @@ Connection.prototype.emitMessage = function(type, body, callback, options) { return envelope; }; -Connection.prototype.thennableEmitMessage = function(type, body, options) { +Connection.prototype.thenableEmitMessage = function(type, body, options) { return Q.Promise((function(resolve, reject, notify) { this.emitMessage(type, body, function(errorCode, response) { resolve({ errorCode: errorCode, response: response }); Modified: lib/droonga-protocol/receiver.js (+2 -2) =================================================================== --- lib/droonga-protocol/receiver.js 2014-10-18 00:08:50 +0900 (1be8da9) +++ lib/droonga-protocol/receiver.js 2014-10-22 15:57:56 +0900 (c9ab65b) @@ -68,7 +68,7 @@ MsgPackReceiver.prototype.close = function(callback) { this.port = undefined; }; -MsgPackReceiver.prototype.thennableClose = function() { +MsgPackReceiver.prototype.thenableClose = function() { var closed = false; var resolver = undefined; this.close(function() { @@ -85,7 +85,7 @@ MsgPackReceiver.prototype.thennableClose = function() { }).bind(this)); }; -MsgPackReceiver.prototype.thennableOnce = function(event) { +MsgPackReceiver.prototype.thenableOnce = function(event) { var fired = false; var givenArgs = []; var resolver = undefined; Modified: test/droonga-protocol/connection.test.js (+4 -4) =================================================================== --- test/droonga-protocol/connection.test.js 2014-10-18 00:08:50 +0900 (8581865) +++ test/droonga-protocol/connection.test.js 2014-10-22 15:57:56 +0900 (68ffcb2) @@ -467,7 +467,7 @@ suite('Connection', function() { function trigger() { connection.emitMessage('type', { message: true }); } - backend.thennableOnce('receive') + backend.thenableOnce('receive') .then(function() { assert.deepEqual(backend.getEvents(), ['type']); @@ -484,14 +484,14 @@ suite('Connection', function() { } var lastError = null; - backend.thennableOnce('receive') + backend.thenableOnce('receive') .then(function() { assert.deepEqual(backend.getEvents(), ['type1']); - return backend.thennableClose(); + return backend.thenableClose(); }) .then(function() { - return connection.thennableEmitMessage('type2', { message: true }) + return connection.thenableEmitMessage('type2', { message: true }) .then(function(args) { lastError = args.response.body.detail; }); -------------- next part -------------- HTML����������������������������...Télécharger