[Groonga-commit] groonga/express-droonga at 325b395 [master] Fix typos around "connection"

Back to archive index

YUKI Hiroshi null+****@clear*****
Thu Aug 1 15:14:14 JST 2013


YUKI Hiroshi	2013-08-01 15:14:14 +0900 (Thu, 01 Aug 2013)

  New Revision: 325b3955e85d518984b367aa14327215f7157f3c
  https://github.com/groonga/express-droonga/commit/325b3955e85d518984b367aa14327215f7157f3c

  Message:
    Fix typos around "connection"

  Modified files:
    lib/adapter/http.js
    lib/adapter/wrapper.js

  Modified: lib/adapter/http.js (+4 -4)
===================================================================
--- lib/adapter/http.js    2013-08-01 15:07:17 +0900 (553b310)
+++ lib/adapter/http.js    2013-08-01 15:14:14 +0900 (0b434dd)
@@ -33,16 +33,16 @@ function createHandler(params) {
         }
       }
 
-    var wrappedConection = new wrapper.DroongaProtocolConnectionWrapper(connection, callback, options);
+    var wrappedConnection = new wrapper.DroongaProtocolConnectionWrapper(connection, callback, options);
     if (definition.onRequest) {
       try {
-        definition.onRequest(request, wrappedConection);
+        definition.onRequest(request, wrappedConnection);
       } catch(error) {
-        wrappedConection.destroy();
+        wrappedConnection.destroy();
         response.jsonp(error, 500);
       }
     } else {
-      wrappedConection.emit(commandName, request.query);
+      wrappedConnection.emit(commandName, request.query);
     }
   });
 }

  Modified: lib/adapter/wrapper.js (+1 -1)
===================================================================
--- lib/adapter/wrapper.js    2013-08-01 15:07:17 +0900 (5e2309f)
+++ lib/adapter/wrapper.js    2013-08-01 15:14:14 +0900 (5b24fff)
@@ -5,7 +5,7 @@ function DroongaProtocolConnectionWrapper(connection, callback, options) {
 }
 DroongaProtocolConnectionWrapper.prototype = {
   emit: function(event, data) {
-    this._conneciton.emitMessage(event, data, this._callback, this._options);
+    this._connection.emitMessage(event, data, 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