Remove doc about dispatching events
This commit is contained in:
@@ -140,11 +140,11 @@ ol.ObjectAccessor.prototype.transform = function(from, to) {
|
|||||||
* function, `evt.target` would be the view, so `evt.target.getCenter()` would
|
* function, `evt.target` would be the view, so `evt.target.getCenter()` would
|
||||||
* return the new center.
|
* return the new center.
|
||||||
*
|
*
|
||||||
* You can add your own observable properties with `set('myProp', 'new value')`,
|
* You can add your own observable properties with
|
||||||
* and retrieve that with `get('myProp')`. A change listener can then be
|
* `object.set('prop', 'value')`, and retrieve that with `object.get('prop')`.
|
||||||
* registered with `on('change:myProp', ...)`. And a change can be triggered
|
* You can listen for changes on that property value with
|
||||||
* with `dispatchEvent('change:myProp')`. You can get a list of all properties
|
* `object.on('change:prop', listener)`. You can get a list of all
|
||||||
* with `getProperties()`.
|
* properties with {@link ol.Object#getProperties object.getProperties()}.
|
||||||
*
|
*
|
||||||
* Note that the observable properties are separate from standard JS properties.
|
* Note that the observable properties are separate from standard JS properties.
|
||||||
* You can, for example, give your map object a title with
|
* You can, for example, give your map object a title with
|
||||||
|
|||||||
Reference in New Issue
Block a user