[Groonga-commit] groonga/gcs [master] Fix expected type string for undefined

Back to archive index

YUKI Hiroshi null+****@clear*****
Wed Dec 5 17:37:08 JST 2012


YUKI Hiroshi	2012-12-05 17:37:08 +0900 (Wed, 05 Dec 2012)

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

  Log:
    Fix expected type string for undefined

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

  Modified: lib/database/index-field.js (+1 -1)
===================================================================
--- lib/database/index-field.js    2012-12-05 17:30:41 +0900 (0e5bd39)
+++ lib/database/index-field.js    2012-12-05 17:37:08 +0900 (e5037e0)
@@ -283,7 +283,7 @@ IndexField.prototype = {
     return value;
   },
   hasOption: function(option) {
-    return typeof this.getOption(option) != undefined;
+    return typeof this.getOption(option) != 'undefined';
   },
   getOptionKey: function(option) {
     return 'column_' + this.name + '_option_' + toSnakeCase(option);
-------------- next part --------------
HTML����������������������������...
Télécharger 



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