ADD commande /cpf (C'est pas faux)
[euphorik.git] / js / betterjs.js
index d7ceb8e..d982030 100644 (file)
@@ -1,3 +1,4 @@
+// coding: utf-8
 // tout un tas d'améliorations de JavaScript ;)
 
 
@@ -33,22 +34,21 @@ Array.prototype.each = function(f) {
 
 Array.prototype.map = function(f) {
    for (var i = 0; i < this.length; i++) {
-      this[i] = f(this[i])
+      this[i] = f(this[i]);
    }
 };
 
 String.prototype.trim = function() {
-       return jQuery.trim(this) // anciennement : this.replace(/^\s+|\s+$/g, "");
-}
+       return jQuery.trim(this); // anciennement : this.replace(/^\s+|\s+$/g, "");
+};
 
 String.prototype.ltrim = function() {
        return this.replace(/^\s+/, "");
-}
+};
 
 String.prototype.rtrim = function() {
        return this.replace(/\s+$/, "");
-}
-
+};
 
 /**
   * Voir : http://www.coolpage.com/developer/javascript/Correct%20OOP%20for%20Javascript.html