Ox.getset: fix documentation

This commit is contained in:
rolux 2012-06-02 12:36:25 +02:00
parent ad338ede3b
commit ba954cfedf

View file

@ -24,12 +24,12 @@ Ox.extend = function(object) {
Ox.getset <f> Generic getter and setter function Ox.getset <f> Generic getter and setter function
See examples for details. See examples for details.
# Usage -------------------------------------------------------------------- # Usage --------------------------------------------------------------------
Ox.getset(options, args=[]) -> <o> all options (options, args=[]) -> <o> all options
Ox.getset(options, args=[key]) -> <*> options[key] (options, args=[key]) -> <*> options[key]
Ox.getset(options, args=[key, value], callback, that) -> <f|o> context (options, args=[key, value], callback, that) -> <o> that
sets options[key] to value and calls fn(key, value) sets options[key] to value and calls fn(key, value)
if the key/value pair was added or modified if the key/value pair was added or modified
Ox.getset(options, args=[{key: value}], callback, that) -> <f|o> that (options, args=[{key: value}], callback, that) -> <o> that
sets multiple options and calls fn(key, value) sets multiple options and calls fn(key, value)
for every key/value pair that was added or modified for every key/value pair that was added or modified
# Arguments ---------------------------------------------------------------- # Arguments ----------------------------------------------------------------