[Groonga-commit] groonga/gcs [master] Activate method chain for setXXX methods

Back to archive index

YUKI Hiroshi null+****@clear*****
Wed Aug 22 17:12:58 JST 2012


YUKI Hiroshi	2012-08-22 17:12:58 +0900 (Wed, 22 Aug 2012)

  New Revision: 55f78c0fb8e7e22af887a26ee3cc9a28203fb14c
  https://github.com/groonga/gcs/commit/55f78c0fb8e7e22af887a26ee3cc9a28203fb14c

  Log:
    Activate method chain for setXXX methods

  Modified files:
    lib/database/index-field.js

  Modified: lib/database/index-field.js (+3 -3)
===================================================================
--- lib/database/index-field.js    2012-08-22 17:12:04 +0900 (988028b)
+++ lib/database/index-field.js    2012-08-22 17:12:58 +0900 (be166d1)
@@ -165,7 +165,7 @@ IndexField.prototype = {
   },
   setFacetEnabled: function(value) {
     this.facetEnabled = value;
-    return value;
+    return this;
   },
   get facetEnabledConfigurationKey() {
     return 'column_' + this.name + '_option_facet_enabled';
@@ -190,7 +190,7 @@ IndexField.prototype = {
   },
   setResultEnabled: function(value) {
     this.resultEnabled = value;
-    return value;
+    return this;
   },
   get resultEnabledConfigurationKey() {
     return 'column_' + this.name + '_option_result_enabled';
@@ -215,7 +215,7 @@ IndexField.prototype = {
   },
   setSearchEnabled: function(value) {
     this.searchEnabled = value;
-    return value;
+    return this;
   },
   get searchEnabledConfigurationKey() {
     return 'column_' + this.name + '_option_search_enabled';
-------------- next part --------------
HTML����������������������������...
Download 



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