chg: String.trim() method is already provided by Rhino

This commit is contained in:
Tobi Schäfer 2020-03-21 10:26:56 +01:00
parent 265cf566b7
commit 2a4ae9adcf

View file

@ -545,17 +545,6 @@ String.prototype.diff = function(mod, separator) {
};
/**
* remove leading and trailing whitespace
* @external
* @memberof {String}
*/
String.prototype.trim = function () {
var s = new java.lang.String(this);
return String(s.trim());
};
/**
* returns true if the string looks like an e-mail
* @external