From be065cdacc73d8df330ee3cb013568a7a4559df4 Mon Sep 17 00:00:00 2001 From: Frederic Junod Date: Mon, 8 Apr 2019 13:45:10 +0200 Subject: [PATCH] Update upgrade-notes --- changelog/upgrade-notes.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/changelog/upgrade-notes.md b/changelog/upgrade-notes.md index 86fd03366e..fd31ad4fec 100644 --- a/changelog/upgrade-notes.md +++ b/changelog/upgrade-notes.md @@ -4,6 +4,16 @@ #### Backwards incompatible changes +#### Removal of optional this arguments + +The optional this (i.e. opt_this) arguments were removed from the following methods. +Please use closures, the es6 arrow function or the bind method to achieve this effect (Bind is explained here: +https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/bind). + +* `forEachCorner` in `ol/extent` +* `LRUCache#forEach` +* `RBush#forEach` and `RBush#forEachInExtent` + ##### The `setCenter`, `setZoom`, `setResolution` and `setRotation` methods on `ol/View` do not bypass constraints anymore Previously, these methods allowed setting values that were inconsistent with the given view constraints.