some jslint
authorAdrien Di Mascio <Adrien.DiMascio@logilab.fr>
Fri, 28 Nov 2008 17:06:00 +0100
changeset 156 261bf6d647eb
parent 155 9ed6db94a087
child 157 85af2e536fd5
some jslint
web/data/cubicweb.python.js
--- a/web/data/cubicweb.python.js	Thu Nov 27 08:01:53 2008 +0100
+++ b/web/data/cubicweb.python.js	Fri Nov 28 17:06:00 2008 +0100
@@ -110,7 +110,7 @@
 	return null;
     }
     // create initial date (!!! year=0 means 1900 !!!)
-    date = new Date(0, 0, 1, 0, 0);
+    var date = new Date(0, 0, 1, 0, 0);
     date.setFullYear(0); // reset to year 0
     if (parsed.Y) {
 	date.setFullYear(parsed.Y);
@@ -126,19 +126,19 @@
 	if (parsed.m < 1 || parsed.m > 31) {
 	    return null;
 	}
-	date.setDate(parsed.d)
+	date.setDate(parsed.d);
     }
     if (parsed.H) {
 	if (parsed.H < 0 || parsed.H > 23) {
 	    return null;
 	}
-	date.setHours(parsed.H)
+	date.setHours(parsed.H);
     }
     if (parsed.M) {
 	if (parsed.M < 0 || parsed.M > 59) {
 	    return null;
 	}
-	date.setMinutes(parsed.M)
+	date.setMinutes(parsed.M);
     }
     return date;
 }