From ba954cfedf15bfc0f6fc85383089464ee9c2ecf2 Mon Sep 17 00:00:00 2001 From: rolux Date: Sat, 2 Jun 2012 12:36:25 +0200 Subject: [PATCH] Ox.getset: fix documentation --- source/Ox/js/Object.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source/Ox/js/Object.js b/source/Ox/js/Object.js index 510ad593..a678e2f1 100644 --- a/source/Ox/js/Object.js +++ b/source/Ox/js/Object.js @@ -24,12 +24,12 @@ Ox.extend = function(object) { Ox.getset Generic getter and setter function See examples for details. # Usage -------------------------------------------------------------------- - Ox.getset(options, args=[]) -> all options - Ox.getset(options, args=[key]) -> <*> options[key] - Ox.getset(options, args=[key, value], callback, that) -> context + (options, args=[]) -> all options + (options, args=[key]) -> <*> options[key] + (options, args=[key, value], callback, that) -> that sets options[key] to value and calls fn(key, value) if the key/value pair was added or modified - Ox.getset(options, args=[{key: value}], callback, that) -> that + (options, args=[{key: value}], callback, that) -> that sets multiple options and calls fn(key, value) for every key/value pair that was added or modified # Arguments ----------------------------------------------------------------