[Groonga-commit] groonga/groonga-admin at 2c58693 [master] Ignore empty value parameter

Back to archive index

Kouhei Sutou null+****@clear*****
Tue Nov 4 22:28:50 JST 2014


Kouhei Sutou	2014-11-04 22:28:50 +0900 (Tue, 04 Nov 2014)

  New Revision: 2c5869369bd688cafe551f39b89d8a4b035a8aec
  https://github.com/groonga/groonga-admin/commit/2c5869369bd688cafe551f39b89d8a4b035a8aec

  Message:
    Ignore empty value parameter

  Modified files:
    app/scripts/groonga-client.js

  Modified: app/scripts/groonga-client.js (+5 -1)
===================================================================
--- app/scripts/groonga-client.js    2014-11-04 22:25:09 +0900 (1633019)
+++ app/scripts/groonga-client.js    2014-11-04 22:28:50 +0900 (e341207)
@@ -12,7 +12,11 @@
       callback: 'JSON_CALLBACK'
     };
     for (var key in parameters) {
-      params[key] = parameters[key];
+      var value = parameters[key].toString();
+      if (value.length === 0) {
+        continue;
+      }
+      params[key] = value;
     }
     var rawRequest = this._$http.jsonp(this._pathPrefix + name + '.json',
                                        {params: params});
-------------- next part --------------
HTML����������������������������...
下載 



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