X-Git-Url: http://git.euphorik.ch/?p=euphorik.git;a=blobdiff_plain;f=js%2Fbetterjs.js;h=d98203066ce87f64a886866456303dec93a66c73;hp=30ca5ad70f9fc6f33c4a9a28f2fc4a1b74e128ab;hb=149c4de8eca530d3d4edf36b903b7d2271558716;hpb=6c0fcdfaefd072f8b0ee1d7d8f1ba2a2c1ede8ec diff --git a/js/betterjs.js b/js/betterjs.js index 30ca5ad..d982030 100644 --- a/js/betterjs.js +++ b/js/betterjs.js @@ -1,3 +1,4 @@ +// coding: utf-8 // tout un tas d'améliorations de JavaScript ;) @@ -39,7 +40,7 @@ Array.prototype.map = function(f) { String.prototype.trim = function() { return jQuery.trim(this); // anciennement : this.replace(/^\s+|\s+$/g, ""); -} +}; String.prototype.ltrim = function() { return this.replace(/^\s+/, "");