Merge pull request #5976 from kring/patch-1
Fix incorrect documentation of off function
This commit is contained in:
commit
f44ec8f889
@ -40,8 +40,7 @@ export function on(obj, types, fn, context) {
|
|||||||
var eventsKey = '_leaflet_events';
|
var eventsKey = '_leaflet_events';
|
||||||
|
|
||||||
// @function off(el: HTMLElement, types: String, fn: Function, context?: Object): this
|
// @function off(el: HTMLElement, types: String, fn: Function, context?: Object): this
|
||||||
// Removes a previously added listener function. If no function is specified,
|
// Removes a previously added listener function.
|
||||||
// it will remove all the listeners of that particular DOM event from the element.
|
|
||||||
// Note that if you passed a custom context to on, you must pass the same
|
// Note that if you passed a custom context to on, you must pass the same
|
||||||
// context to `off` in order to remove the listener.
|
// context to `off` in order to remove the listener.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user