From c614af2cd98c0aea49a8085cba2539373a7f655b Mon Sep 17 00:00:00 2001 From: Denis Wolf Date: Mon, 28 Oct 2013 23:41:11 +0200 Subject: [PATCH] utils.js - removed unused *trim shims - it's better to bring them when and if needed --- public/src/utils.js | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/public/src/utils.js b/public/src/utils.js index 296cca3e1f..885ab3f765 100644 --- a/public/src/utils.js +++ b/public/src/utils.js @@ -225,25 +225,6 @@ }; } - if (!String.prototype.ltrim) { - String.prototype.ltrim = function() { - return this.replace(/^\s+/, ''); - }; - } - - if (!String.prototype.rtrim) { - String.prototype.rtrim = function() { - return this.replace(/\s+$/, ''); - }; - } - - if (!String.prototype.fulltrim) { - String.prototype.fulltrim = function() { - return this.replace(/(?:(?:^|\n)\s+|\s+(?:$|\n))/g, '').replace(/\s+/g, ' '); - }; - } - - if ('undefined' !== typeof window) { window.utils = module.exports; }