X-Git-Url: http://git.euphorik.ch/?p=euphorik.git;a=blobdiff_plain;f=js%2Fbetterjs.js;h=69788d819ba5da817bdd88080d65ab648a3ac5ce;hp=30ca5ad70f9fc6f33c4a9a28f2fc4a1b74e128ab;hb=e2355385811ba452308be5e66afc7f93cb6af75b;hpb=7d65ab0a09411a21156bb521c85c77e785670463 diff --git a/js/betterjs.js b/js/betterjs.js index 30ca5ad..69788d8 100644 --- a/js/betterjs.js +++ b/js/betterjs.js @@ -39,7 +39,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+/, "");