From 37241a791976a4d894e636ea5cf0040a87d0b324 Mon Sep 17 00:00:00 2001 From: Lee Dohm Date: Wed, 14 May 2014 21:15:17 -0700 Subject: [PATCH] :memo: Clean up Config::observe --- src/config.coffee | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/config.coffee b/src/config.coffee index 551240f31..9061d9771 100644 --- a/src/config.coffee +++ b/src/config.coffee @@ -222,11 +222,12 @@ class Config # # keyPath - The {String} name of the key to observe # options - An optional {Object} containing the `callNow` key. - # callback - The {Function} that fires when the. It is given a single argument, `value`, - # which is the new value of `keyPath`. + # callback - The {Function} that fires when the value of the key is + # changed. It is given a single argument, `value`, which is + # the new value of `keyPath`. # # Returns an {Object} with the following keys: - # :off - A {Function} that unobserves the `keyPath` with called. + # :off - A {Function} that unobserves the `keyPath` when called. observe: (keyPath, options={}, callback) -> if _.isFunction(options) callback = options