Fix incorrect documentation of off function

#5855 removed some of the incorrect documentation, this removes the rest.
This commit is contained in:
Kevin Ring 2017-12-22 11:48:03 +11:00 committed by GitHub
parent 572938c741
commit e6f1ab7704
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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.