From 16f1c484207a05cfb0e8752d513335ce372240dc Mon Sep 17 00:00:00 2001 From: Andrew Date: Tue, 9 Jan 2018 19:08:02 +0100 Subject: [PATCH] update changelog and reference --- CHANGELOG.md | 2 +- docs/reference-1.3.0.html | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b6e0c626..a48be41a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -64,7 +64,7 @@ Leaflet Changelog * Fix `L.LatLng` `distanceTo` method description ([#5791](https://github.com/Leaflet/Leaflet/issues/5791) by [loisgh](https://github.com/loisgh)) * Fix docs redirects to latest version reference ([#5824](https://github.com/Leaflet/Leaflet/issues/5824) by [cherniavskii](https://github.com/cherniavskii)) * Add CDN alternatives ([#5837](https://github.com/Leaflet/Leaflet/issues/5837) by [ghybs](https://github.com/ghybs)) -* Update docs for `L.DomEvent.off()` ([#5855](https://github.com/Leaflet/Leaflet/issues/5855) by [77ganesh](https://github.com/77ganesh)) +* Update docs for `L.DomEvent.off()` ([#5855](https://github.com/Leaflet/Leaflet/issues/5855) by [77ganesh](https://github.com/77ganesh) and [#5976](https://github.com/Leaflet/Leaflet/issues/5976) by [kring](https://github.com/kring)) * Move `L.SVG` factory docs to appropriate place ([#5864](https://github.com/Leaflet/Leaflet/issues/5864) by [cherniavskii](https://github.com/cherniavskii)) * New Leaflet playgrounds on Plunker, Codepen and JSFiddle ([#5868](https://github.com/Leaflet/Leaflet/issues/5868) by [iH8](https://github.com/iH8)) * Clarify that any option keys can be used ([#5877](https://github.com/Leaflet/Leaflet/issues/5877) by [perliedman](https://github.com/perliedman)) diff --git a/docs/reference-1.3.0.html b/docs/reference-1.3.0.html index c070fb13..bf692e52 100644 --- a/docs/reference-1.3.0.html +++ b/docs/reference-1.3.0.html @@ -18971,8 +18971,7 @@ space-separated types (e.g. 'click dblclick'). off(<HTMLElement> el, <String> types, <Function> fn, <Object> context?) this - Removes a previously added listener function. If no function is specified, -it will remove all the listeners of that particular DOM event from the element. + Removes a previously added listener function. Note that if you passed a custom context to on, you must pass the same context to off in order to remove the listener.