community-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From humbed...@apache.org
Subject svn commit: r1799043 - in /comdev/reporter.apache.org/trunk/site/js: coffee/preload.coffee tabs.js
Date Sun, 18 Jun 2017 07:05:47 GMT
Author: humbedooh
Date: Sun Jun 18 07:05:47 2017
New Revision: 1799043

URL: http://svn.apache.org/viewvc?rev=1799043&view=rev
Log:
fix another coffee bug with iteration

Modified:
    comdev/reporter.apache.org/trunk/site/js/coffee/preload.coffee
    comdev/reporter.apache.org/trunk/site/js/tabs.js

Modified: comdev/reporter.apache.org/trunk/site/js/coffee/preload.coffee
URL: http://svn.apache.org/viewvc/comdev/reporter.apache.org/trunk/site/js/coffee/preload.coffee?rev=1799043&r1=1799042&r2=1799043&view=diff
==============================================================================
--- comdev/reporter.apache.org/trunk/site/js/coffee/preload.coffee (original)
+++ comdev/reporter.apache.org/trunk/site/js/coffee/preload.coffee Sun Jun 18 07:05:47 2017
@@ -20,7 +20,7 @@ mergeData = (json, pmc) ->
                 break
             
     todo = new Array('count', 'mail', 'delivery', 'bugzilla', 'jira', 'changes', 'pmcdates',
'pdata', 'releases', 'keys', 'health')
-    for key, i in todo
+    for key in todo
         jsdata[key][pmc] = json[key][pmc];
     jsdata.pmcs.push(pmc)
     nproject = pmc

Modified: comdev/reporter.apache.org/trunk/site/js/tabs.js
URL: http://svn.apache.org/viewvc/comdev/reporter.apache.org/trunk/site/js/tabs.js?rev=1799043&r1=1799042&r2=1799043&view=diff
==============================================================================
--- comdev/reporter.apache.org/trunk/site/js/tabs.js (original)
+++ comdev/reporter.apache.org/trunk/site/js/tabs.js Sun Jun 18 07:05:47 2017
@@ -1114,8 +1114,8 @@ mergeData = function(json, pmc) {
     }
   }
   todo = new Array('count', 'mail', 'delivery', 'bugzilla', 'jira', 'changes', 'pmcdates',
'pdata', 'releases', 'keys', 'health');
-  for (i = l = 0, len2 = todo.length; l < len2; i = ++l) {
-    key = todo[i];
+  for (l = 0, len2 = todo.length; l < len2; l++) {
+    key = todo[l];
     jsdata[key][pmc] = json[key][pmc];
   }
   jsdata.pmcs.push(pmc);



Mime
View raw message