utils.js - removed unused *trim shims - it's better to bring them when and if needed

v1.18.x
Denis Wolf 11 years ago
parent c2abff6e6d
commit c614af2cd9

@ -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;
}

Loading…
Cancel
Save