[Groonga-commit] groonga/gcs [master] Add IndexField#setType() as a shorthand

Back to archive index

null+****@clear***** null+****@clear*****
2012年 8月 9日 (木) 18:34:25 JST


SHIMODA Hiroshi	2012-08-09 18:34:25 +0900 (Thu, 09 Aug 2012)

  New Revision: d49f2dfbc64c76fec42bf54b8a1008ce1651c378
  https://github.com/groonga/gcs/commit/d49f2dfbc64c76fec42bf54b8a1008ce1651c378

  Log:
    Add IndexField#setType() as a shorthand

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

  Modified: lib/database/index-field.js (+5 -0)
===================================================================
--- lib/database/index-field.js    2012-08-09 18:27:50 +0900 (2ed0b7c)
+++ lib/database/index-field.js    2012-08-09 18:34:25 +0900 (e22de21)
@@ -135,6 +135,11 @@ IndexField.prototype = {
     return this._type = type
   },
 
+  setType: function(type) {
+    this.type = type;
+    return this;
+  },
+
   get defaultValue() {
     return null;
   },
-------------- next part --------------
HTML$B$NE:IU%U%!%$%k$rJ]4I$7$^$7$?(B...
다운로드 



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