update docs

This commit is contained in:
rolux 2012-05-26 00:44:21 +02:00
parent 9ffe48b526
commit 08aedd34fd

View file

@ -550,14 +550,14 @@ Ox.values = function(collection) {
}; };
/*@ /*@
Ox.walk <f> Iterate over a nested data structure Ox.walk <f> Iterates over a nested data structure
<script> <script>
Ox.test.number = 0; Ox.test.number = 0;
Ox.walk({a: 1, b: {c: 2, d: 3}}, function (value) { Ox.walk({a: 1, b: {c: 2, d: 3}}, function(value) {
Ox.test.number += Ox.isNumber(value) ? value : 0; Ox.test.number += Ox.isNumber(value) ? value : 0;
}); });
Ox.test.array = []; Ox.test.array = [];
Ox.walk({a: 1, b: {c: 2, d: 3}}, function (value, keys) { Ox.walk({a: 1, b: {c: 2, d: 3}}, function(value, keys) {
Ox.isNumber(value) && Ox.test.array.push(keys) Ox.isNumber(value) && Ox.test.array.push(keys)
}); });
</script> </script>