Better document which events are fired

The map does not fire ol.render.Event#render. Change events are
now only listed for classes that fire them, and a description
about when they are fired is added.
This commit is contained in:
Andreas Hocevar
2014-05-15 20:28:09 +02:00
parent a75d944311
commit b2805c58de
9 changed files with 11 additions and 3 deletions

View File

@@ -68,6 +68,7 @@ ol.DeviceOrientationProperty = {
*
* @constructor
* @extends {ol.Object}
* @fires change Triggered when the device orientation changes.
* @param {olx.DeviceOrientationOptions=} opt_options Options.
* @todo api
*/

View File

@@ -18,6 +18,7 @@ goog.require('ol.style.Style');
/**
* @constructor
* @extends {ol.Object}
* @fires change Triggered when the geometry or style of the feature changes.
* @param {ol.geom.Geometry|Object.<string, *>=} opt_geometryOrValues
* Values or geometry.
* @todo api

View File

@@ -51,6 +51,7 @@ ol.GeolocationProperty = {
*
* @constructor
* @extends {ol.Object}
* @fires change Triggered when the position changes.
* @param {olx.GeolocationOptions=} opt_options Options.
* @todo api
*/

View File

@@ -46,6 +46,7 @@ ol.geom.GeometryLayout = {
/**
* @constructor
* @extends {ol.Observable}
* @fires change Triggered when the geometry changes.
* @todo api
*/
ol.geom.Geometry = function() {

View File

@@ -13,6 +13,7 @@ goog.require('ol.source.Source');
* @constructor
* @extends {ol.layer.Base}
* @fires ol.render.Event
* @fires change Triggered when the state of the source changes.
* @param {olx.layer.LayerOptions} options Layer options.
* @todo api
*/

View File

@@ -27,6 +27,8 @@ ol.layer.GroupProperty = {
/**
* @constructor
* @extends {ol.layer.Base}
* @fires change Triggered when the state of the source of any of the layers of
* this group changes
* @param {olx.layer.GroupOptions=} opt_options Layer options.
* @todo api
*/

View File

@@ -158,7 +158,8 @@ ol.MapProperty = {
* @param {olx.MapOptions} options Map options.
* @fires ol.MapBrowserEvent
* @fires ol.MapEvent
* @fires ol.render.Event
* @fires ol.render.Event#postcompose
* @fires ol.render.Event#precompose
* @todo api
*/
ol.Map = function(options) {

View File

@@ -31,8 +31,7 @@ goog.inherits(ol.Observable, goog.events.EventTarget);
/**
* Dispatches a `change` event. Register a listener for this event to get
* notified of changes.
* Dispatches a `change` event.
* @fires change
* @todo api
*/

View File

@@ -35,6 +35,7 @@ ol.source.SourceOptions;
/**
* @constructor
* @extends {ol.Observable}
* @fires change Triggered when the state of the source changes.
* @param {ol.source.SourceOptions} options Source options.
*/
ol.source.Source = function(options) {