[Groonga-commit] groonga/groonga-admin at f5096ab [master] Use angular.forEach

Back to archive index

Kouhei Sutou null+****@clear*****
Thu Oct 23 11:37:30 JST 2014


Kouhei Sutou	2014-10-23 11:37:30 +0900 (Thu, 23 Oct 2014)

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

  Message:
    Use angular.forEach

  Modified files:
    app/scripts/controllers/table-search-controller.js

  Modified: app/scripts/controllers/table-search-controller.js (+4 -5)
===================================================================
--- app/scripts/controllers/table-search-controller.js    2014-10-23 11:11:31 +0900 (f688d04)
+++ app/scripts/controllers/table-search-controller.js    2014-10-23 11:37:30 +0900 (a619105)
@@ -17,15 +17,14 @@ angular.module('groongaAdminApp')
 
     function buildCommandLine(name, parameters) {
       var components = [name];
-      for (var key in parameters) {
+      angular.forEach(parameters, function(value, key) {
         if (key === 'callback') {
-          continue;
+          return;
         }
-        components.push('--' + key);
 
-        var value = parameters[key];
+        components.push('--' + key);
         components.push('"' + escapeCommandValue(value) + '"');
-      }
+      });
       return components.join(' ');
     }
 
-------------- next part --------------
HTML����������������������������...
Télécharger 



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