[js] lint stable
authorAurelien Campeas <aurelien.campeas@logilab.fr>
Thu, 09 Jul 2009 19:36:05 +0200
branchstable
changeset 2363 1190b312bfe3
parent 2362 f2409d5f2b75
child 2364 fa16d36d60cb
[js] lint
web/data/cubicweb.python.js
--- a/web/data/cubicweb.python.js	Thu Jul 09 19:35:32 2009 +0200
+++ b/web/data/cubicweb.python.js	Thu Jul 09 19:36:05 2009 +0200
@@ -15,12 +15,12 @@
 	return true;
     }
     return false;
-}
+};
 
 Date.prototype.add = function(days) {
-    var res = new Date()
-    res.setTime(this.getTime() + (days * ONE_DAY))
-    return res
+    var res = new Date();
+    res.setTime(this.getTime() + (days * ONE_DAY));
+    return res;
 };
 
 Date.prototype.sub = function(days) {
@@ -29,14 +29,14 @@
 
 Date.prototype.iadd = function(days) {
     // in-place add
-    this.setTime(this.getTime() + (days * ONE_DAY))
+    this.setTime(this.getTime() + (days * ONE_DAY));
     // avoid strange rounding problems !!
     this.setHours(12);
 };
 
 Date.prototype.isub = function(days) {
     // in-place sub
-    this.setTime(this.getTime() - (days * ONE_DAY))
+    this.setTime(this.getTime() - (days * ONE_DAY));
 };
 
 /*
@@ -170,14 +170,14 @@
  */
 String.prototype.startsWith = function(prefix) {
     return this.indexOf(prefix) == 0;
-}
+};
 
 /* python-like endsWith method for js strings */
 String.prototype.endsWith = function(suffix) {
     var startPos = this.length - suffix.length;
     if (startPos < 0) { return false; }
     return this.lastIndexOf(suffix, startPos) == startPos;
-}
+};
 
 /* python-like strip method for js strings */
 String.prototype.strip = function() {
@@ -187,12 +187,12 @@
 /* py-equiv: string in list */
 String.prototype.in_ = function(values) {
     return findValue(values, this) != -1;
-}
+};
 
 /* py-equiv: str.join(list) */
 String.prototype.join = function(args) {
     return args.join(this);
-}
+};
 
 /* python-like list builtin
  * transforms an iterable in a js sequence