From 400484e6635f830e157a7d1e2fc5afb004cecac3 Mon Sep 17 00:00:00 2001 From: Andreas Hocevar Date: Thu, 9 Jun 2016 16:19:11 +0200 Subject: [PATCH] Reference ol.MapBrowserEvent instead of ol.MapBrowserPointerEvent There is nothing exportable in ol.MapBrowserEvent in addition to what is exportable in ol.MapBrowserEvent. --- changelog/upgrade-notes.md | 4 ++++ externs/oli.js | 4 ++-- src/ol/interaction/modifyinteraction.js | 6 +++--- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/changelog/upgrade-notes.md b/changelog/upgrade-notes.md index a82e584a6b..c35c4d6896 100644 --- a/changelog/upgrade-notes.md +++ b/changelog/upgrade-notes.md @@ -1,5 +1,9 @@ ## Upgrade notes +#### `ol.interaction.ModifyEvent` changes + +The event object previously had a `mapBrowserPointerEvent` property, which has been renamed to `mapBrowserEvent`. + #### Removal of ol.raster namespace Users compiling their code with the library and using types in the `ol.raster` namespace should note that this has now been removed. `ol.raster.Pixel` has been deleted, and the other types have been renamed as follows, and your code may need changing if you use these: diff --git a/externs/oli.js b/externs/oli.js index 1c9b4834be..d3522f7cfe 100644 --- a/externs/oli.js +++ b/externs/oli.js @@ -92,9 +92,9 @@ oli.ModifyEvent.prototype.features; /** - * @type {ol.MapBrowserPointerEvent} + * @type {ol.MapBrowserEvent} */ -oli.ModifyEvent.prototype.mapBrowserPointerEvent; +oli.ModifyEvent.prototype.mapBrowserEvent; /** diff --git a/src/ol/interaction/modifyinteraction.js b/src/ol/interaction/modifyinteraction.js index e5329d5116..d240b984b6 100644 --- a/src/ol/interaction/modifyinteraction.js +++ b/src/ol/interaction/modifyinteraction.js @@ -73,11 +73,11 @@ ol.interaction.ModifyEvent = function(type, features, mapBrowserPointerEvent) { this.features = features; /** - * Associated {@link ol.MapBrowserPointerEvent}. - * @type {ol.MapBrowserPointerEvent} + * Associated {@link ol.MapBrowserEvent}. + * @type {ol.MapBrowserEvent} * @api */ - this.mapBrowserPointerEvent = mapBrowserPointerEvent; + this.mapBrowserEvent = mapBrowserPointerEvent; }; ol.inherits(ol.interaction.ModifyEvent, ol.events.Event);