From e6f1ab7704f9d90bdca5842e667f377998312005 Mon Sep 17 00:00:00 2001 From: Kevin Ring Date: Fri, 22 Dec 2017 11:48:03 +1100 Subject: [PATCH] Fix incorrect documentation of off function #5855 removed some of the incorrect documentation, this removes the rest. --- src/dom/DomEvent.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/dom/DomEvent.js b/src/dom/DomEvent.js index 4d8a4d86..a5449547 100644 --- a/src/dom/DomEvent.js +++ b/src/dom/DomEvent.js @@ -40,8 +40,7 @@ export function on(obj, types, fn, context) { var eventsKey = '_leaflet_events'; // @function off(el: HTMLElement, types: String, fn: Function, context?: Object): 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.