[Groonga-commit] droonga/express-droonga at 952f79d [master] Accept custom callback of emitMessage for DroongaPRotocolConnectionWrapper

Back to archive index

YUKI Hiroshi null+****@clear*****
Thu Sep 5 11:16:56 JST 2013


YUKI Hiroshi	2013-09-05 11:16:56 +0900 (Thu, 05 Sep 2013)

  New Revision: 952f79d2b62e48c9a0263e9c94a05bf0b888a6f9
  https://github.com/droonga/express-droonga/commit/952f79d2b62e48c9a0263e9c94a05bf0b888a6f9

  Message:
    Accept custom callback of emitMessage for DroongaPRotocolConnectionWrapper

  Modified files:
    lib/adapter/wrapper.js

  Modified: lib/adapter/wrapper.js (+2 -2)
===================================================================
--- lib/adapter/wrapper.js    2013-08-28 14:44:52 +0900 (79e4a4e)
+++ lib/adapter/wrapper.js    2013-09-05 11:16:56 +0900 (49e2ee2)
@@ -4,8 +4,8 @@ function DroongaProtocolConnectionWrapper(connection, callback, options) {
   this._options = options;
 }
 DroongaProtocolConnectionWrapper.prototype = {
-  emit: function(event, data) {
-    this._connection.emitMessage(event, data, this._callback, this._options);
+  emit: function(event, data, callback) {
+    this._connection.emitMessage(event, data, callback || this._callback, this._options);
   },
   destroy: function() {
     delete this._connection;
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index