[Groonga-commit] droonga/express-droonga at f8a5b52 [master] Use more meaningful name

Back to archive index

YUKI Hiroshi null+****@clear*****
Thu Jan 9 12:46:22 JST 2014


YUKI Hiroshi	2014-01-09 12:46:22 +0900 (Thu, 09 Jan 2014)

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

  Message:
    Use more meaningful name

  Modified files:
    lib/adapter/command.js
    lib/adapter/socket.io.js

  Modified: lib/adapter/command.js (+4 -4)
===================================================================
--- lib/adapter/command.js    2014-01-09 12:26:46 +0900 (e576600)
+++ lib/adapter/command.js    2014-01-09 12:46:22 +0900 (4ed051f)
@@ -87,8 +87,8 @@ PublishSubscribe.extend = function(targetClass) {
     get: function() { return this._options.onPublish || this._onPublish; }
   });
   if (!targetClass.prototype._onPublish)
-    targetClass.prototype._onPublish = function(message, subscriberSocket) {
-      subscriberSocket.emit(this.messageType, message);
+    targetClass.prototype._onPublish = function(publishedMessageBody, subscriberSocket) {
+      subscriberSocket.emit(this.messageType, publishedMessageBody);
     };
 };
 PublishSubscribe.extend(PublishSubscribe);
@@ -180,8 +180,8 @@ HTTPStreaming.extend = function(targetClass) {
     get: function() { return this._options.translate || this._translate; }
   });
   if (!targetClass.prototype._translate)
-    targetClass.prototype._translate = function(message) {
-      return message;
+    targetClass.prototype._translate = function(publishedMessageBody) {
+      return publishedMessageBody;
     };
 
   var connectionsCount = 0;

  Modified: lib/adapter/socket.io.js (+1 -1)
===================================================================
--- lib/adapter/socket.io.js    2014-01-09 12:26:46 +0900 (bb5fb56)
+++ lib/adapter/socket.io.js    2014-01-09 12:46:22 +0900 (d832cf6)
@@ -73,7 +73,7 @@ exports.register = function(application, server, params) {
           options.event = responseEvent;
         }
 
-        if (handlerOptions.onResponse && typeof handlerOptions.onResponse == 'function')
+        if (typeof handlerOptions.onResponse == 'function')
           handlerOptions.onResponse(data, responseData);
 
         var wrappedSocket = new wrapper.SocketIOClientSocketWrapper(socket, options);
-------------- next part --------------
HTML����������������������������...
Download 



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