chg: String.trim() method is already provided by Rhino
This commit is contained in:
parent
265cf566b7
commit
2a4ae9adcf
1 changed files with 0 additions and 11 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue