[Groonga-commit] groonga/gcs [master] Fix mismatched "this"

Back to archive index

YUKI Hiroshi null+****@clear*****
Mon Oct 22 11:42:41 JST 2012


YUKI Hiroshi	2012-10-22 11:42:41 +0900 (Mon, 22 Oct 2012)

  New Revision: 0e5b78f20373fa54ef19f9fb52eb76b66cfe5e2f
  https://github.com/groonga/gcs/commit/0e5b78f20373fa54ef19f9fb52eb76b66cfe5e2f

  Log:
    Fix mismatched "this"

  Modified files:
    lib/client.js

  Modified: lib/client.js (+1 -1)
===================================================================
--- lib/client.js    2012-10-22 11:41:50 +0900 (d39e93e)
+++ lib/client.js    2012-10-22 11:42:41 +0900 (4d6cfab)
@@ -85,7 +85,7 @@ Client.prototype = {
     };
     service.addCommonOptions = function(options, args) {
       options.headers['content-type'] = 'application/json';
-      options.headers['content-length'] = this.countBytes(JSON.stringify(args.Docs));
+      options.headers['content-length'] = self.countBytes(JSON.stringify(args.Docs));
     };
     return service;
   },
-------------- next part --------------
HTML����������������������������...
Download 



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