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

This commit is contained in:
Denis Wolf
2013-10-28 23:41:11 +02:00
parent c2abff6e6d
commit c614af2cd9

View File

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