diff options
Diffstat (limited to 'framework/Web/Javascripts/prado/validation.js')
-rw-r--r-- | framework/Web/Javascripts/prado/validation.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/framework/Web/Javascripts/prado/validation.js b/framework/Web/Javascripts/prado/validation.js index 33d5411d..8b796cb1 100644 --- a/framework/Web/Javascripts/prado/validation.js +++ b/framework/Web/Javascripts/prado/validation.js @@ -150,10 +150,10 @@ Prado.Validation.Util.toDate = function(value, format) * @param {string} string to be trimmed.
* @type {string} trimmed string.
*/
-Prado.Validation.Util.trim = function(value)
+Prado.Validation.trim = function(value)
{
- if(undef(value)) return "";
- return value.replace(/^\s+|\s+$/g, "");
+ if(isString(value)) return value.trim();
+ return "";
}
/**
|