1
0
Fork 0
forked from 0x2620/oxjs

updating form elements

This commit is contained in:
rolux 2011-12-30 15:03:01 +05:30
commit 73f1105692
13 changed files with 305 additions and 140 deletions

View file

@ -643,7 +643,9 @@ Ox.some <f> Tests if one or more elements of a collection satisfy a given condit
true
@*/
Ox.some = function(obj, fn) {
return Ox.filter(Ox.values(obj), fn).length > 0;
return Ox.filter(Ox.values(obj), fn || function(v) {
return v;
}).length > 0;
};
/*@