update Ox.load documentation

This commit is contained in:
rolux 2012-06-20 18:39:31 +02:00
parent 56dcb0e725
commit 68b89d7628

View file

@ -102,6 +102,7 @@ Ox.load <f> Loads one or more modules
and calls `callback` with one argument, `true` for success or `false` if an and calls `callback` with one argument, `true` for success or `false` if an
error occurred. Generally, the module should define `Ox.Foo` and attach its error occurred. Generally, the module should define `Ox.Foo` and attach its
own methods there. own methods there.
(callback) -> <u> undefined
(module, callback) -> <u> undefined (module, callback) -> <u> undefined
(module, options, callback) -> <u> undefined (module, options, callback) -> <u> undefined
(modules, callback) -> <u> undefined (modules, callback) -> <u> undefined
@ -109,7 +110,7 @@ Ox.load <f> Loads one or more modules
options <o> Module options options <o> Module options
modules <a|o> Multiple modules modules <a|o> Multiple modules
Either `[moduleA, {moduleB: options}, ...]` Either `[moduleA, {moduleB: options}, ...]`
or `{moduleA: {}, moduleB: {options}, ...}` or `{moduleA: {}, moduleB: options, ...}`
callback <f> Callback function callback <f> Callback function
success <b> If true, all modules have been loaded successfully success <b> If true, all modules have been loaded successfully
@*/ @*/