Ox.getset: fix documentation
This commit is contained in:
parent
ad338ede3b
commit
ba954cfedf
1 changed files with 4 additions and 4 deletions
|
@ -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 ----------------------------------------------------------------
|
||||||
|
|
Loading…
Reference in a new issue