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:
parent
7ea6938de5
commit
cfc5baef61
4 changed files with 23 additions and 14 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue