change autovalidate function for input elements so that it returns, along with the new value, a valid flag that indicates if the value is already valid

This commit is contained in:
rlx 2011-10-22 14:50:31 +00:00
commit cfc5baef61
4 changed files with 23 additions and 14 deletions

View file

@ -23,6 +23,8 @@ Ox.clean <f> Remove leading, trailing and double whitespace from a string
"foo bar"
> Ox.clean(" foo \n bar ")
"foo\nbar"
> Ox.clean(" foo\tbar ")
"foo bar"
@*/
Ox.clean = function(str) {
return Ox.map(str.split('\n'), function(str) {