misc. minor changes and documentation updates

This commit is contained in:
rolux 2012-04-08 20:22:27 +02:00
commit abfea74565
8 changed files with 102 additions and 30 deletions

View file

@ -597,6 +597,8 @@ Ox.some <f> Tests if one or more elements of a collection satisfy a given condit
true
> Ox.some("foo", function(v) { return v == 'f'; })
true
> Ox.some([false, 0, null, '', void 0])
false
@*/
Ox.some = function(obj, fn) {
return Ox.filter(Ox.values(obj), fn || function(v) {

View file

@ -34,8 +34,8 @@ Ox.doc <f> Generates documentation for annotated JavaScript
(source) <a> Array of documentation objects
source <s> JavaScript source code
# > Ox.doc("//@ Ox.foo <string> just some string")
# [{"name": "Ox.foo", "summary": "just some string", "type": "string"}]
> Ox.doc("//@ My.FOO <n> Magic constant\nMy.FOO = 23;")
[{"name": "Ox.foo", "summary": "just some string", "type": "string"}]
@*/
Ox.doc = (function() {