From bf314f30d5b0f24d96ada081b1eec026b4e19bf1 Mon Sep 17 00:00:00 2001 From: Tim Schaub Date: Thu, 23 Oct 2014 17:10:29 -0600 Subject: [PATCH] Remove doc about dispatching events --- src/ol/object.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/ol/object.js b/src/ol/object.js index 4a5a35987a..c2b3d0dea3 100644 --- a/src/ol/object.js +++ b/src/ol/object.js @@ -140,11 +140,11 @@ ol.ObjectAccessor.prototype.transform = function(from, to) { * function, `evt.target` would be the view, so `evt.target.getCenter()` would * return the new center. * - * You can add your own observable properties with `set('myProp', 'new value')`, - * and retrieve that with `get('myProp')`. A change listener can then be - * registered with `on('change:myProp', ...)`. And a change can be triggered - * with `dispatchEvent('change:myProp')`. You can get a list of all properties - * with `getProperties()`. + * You can add your own observable properties with + * `object.set('prop', 'value')`, and retrieve that with `object.get('prop')`. + * You can listen for changes on that property value with + * `object.on('change:prop', listener)`. You can get a list of all + * properties with {@link ol.Object#getProperties object.getProperties()}. * * Note that the observable properties are separate from standard JS properties. * You can, for example, give your map object a title with