[Groonga-commit] groonga/gcs [master] Specify "this" for Array#map

Back to archive index

null+****@clear***** null+****@clear*****
2012年 7月 11日 (水) 19:14:15 JST


SHIMODA Hiroshi	2012-07-11 19:14:15 +0900 (Wed, 11 Jul 2012)

  New Revision: 2bc8bb1352516c93362d77cd46fcd28afafa19d7
  https://github.com/groonga/gcs/commit/2bc8bb1352516c93362d77cd46fcd28afafa19d7

  Log:
    Specify "this" for Array#map

  Modified files:
    lib/domain.js

  Modified: lib/domain.js (+1 -1)
===================================================================
--- lib/domain.js    2012-07-11 19:13:24 +0900 (1fa33ed)
+++ lib/domain.js    2012-07-11 19:14:15 +0900 (91fd12f)
@@ -76,7 +76,7 @@ Domain.prototype = {
   },
   getIndexFieldsSync: function(database) {
     var columns = database.ordinalColumnsSync(this.tableName);
-    var fields = columns.map(this.columnToIndexField);
+    var fields = columns.map(this.columnToIndexField, this);
     return fields;
   },
   columnToIndexField: function(column) {
-------------- next part --------------
HTML$B$NE:IU%U%!%$%k$rJ]4I$7$^$7$?(B...
下载 



Groonga-commit メーリングリストの案内
Back to archive index