community-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1698190 - /comdev/reporter.apache.org/trunk/site/render.js
Date Thu, 27 Aug 2015 16:23:55 GMT
Author: sebb
Date: Thu Aug 27 16:23:54 2015
New Revision: 1698190

URL: http://svn.apache.org/r1698190
Log:
Extract the string check from the loop

Modified:
    comdev/reporter.apache.org/trunk/site/render.js

Modified: comdev/reporter.apache.org/trunk/site/render.js
URL: http://svn.apache.org/viewvc/comdev/reporter.apache.org/trunk/site/render.js?rev=1698190&r1=1698189&r2=1698190&view=diff
==============================================================================
--- comdev/reporter.apache.org/trunk/site/render.js (original)
+++ comdev/reporter.apache.org/trunk/site/render.js Thu Aug 27 16:23:54 2015
@@ -103,8 +103,9 @@ function setReportDate(json, x) {
 	}
 	for (i in json[pmc]) {
 		sm = json[pmc][i]
+		em = everyMonth(sm)
 		for (x in m) {
-			if (m[x] == sm || everyMonth(sm)) {
+			if (em || m[x] == sm) {
 				dates.push(getWednesdays(x)[2])
 			}
 		}
@@ -113,8 +114,9 @@ function setReportDate(json, x) {
 	var ny = today.getFullYear() + 1;
 	for (i in json[pmc]) {
 		sm = json[pmc][i]
+        em = everyMonth(sm)
 		for (x in m) {
-			if (m[x] == sm || everyMonth(sm)) {
+			if (em || m[x] == sm) {
 				dates.push(getWednesdays(x, ny)[2])
 			}
 		}



Mime
View raw message