[Groonga-commit] groonga/express-kotoumi [master] Use .XXX style instead of ['...']

Back to archive index

Kouhei Sutou null+****@clear*****
Tue Feb 12 18:00:21 JST 2013


Kouhei Sutou	2013-02-12 18:00:21 +0900 (Tue, 12 Feb 2013)

  New Revision: 633818f3dd4992548ab07ff0572b18c097f24214
  https://github.com/groonga/express-kotoumi/commit/633818f3dd4992548ab07ff0572b18c097f24214

  Log:
    Use .XXX style instead of ['...']
    
    Because "inReplyTo" is valid identifier.

  Modified files:
    lib/backend/connection.js

  Modified: lib/backend/connection.js (+1 -1)
===================================================================
--- lib/backend/connection.js    2013-02-08 19:10:00 +0900 (8255787)
+++ lib/backend/connection.js    2013-02-12 18:00:21 +0900 (d634add)
@@ -76,7 +76,7 @@ function isSuccess(code) {
 Connection.prototype._handleMessage = function(envelope) {
   this.emit('message', envelope);
 
-  var inReplyTo = envelope['inReplyTo'];
+  var inReplyTo = envelope.inReplyTo;
   if (inReplyTo) {
     var errorCode = envelope.statusCode;
     if (!errorCode || isSuccess(errorCode))
-------------- next part --------------
HTML����������������������������...
Download 



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