[Leaflet] on and off alias for L.DomEvent

This commit is contained in:
Antoine Pultier
2014-08-07 10:42:43 +02:00
parent 54d719d86e
commit c1858577da
+2
View File
@@ -570,11 +570,13 @@ declare module L {
* inside the listener will point to context, or to the element if not specified.
*/
static addListener(el: HTMLElement, type: string, fn: (e: Event) => void, context?: any): DomEvent;
static on(el: HTMLElement, type: string, fn: (e: Event) => void, context?: any): DomEvent;
/**
* Removes an event listener from the element.
*/
static removeListener(el: HTMLElement, type: string, fn: (e: Event) => void, context?: any): DomEvent;
static off(el: HTMLElement, type: string, fn: (e: Event) => void, context?: any): DomEvent;
/**
* Stop the given event from propagation to parent elements. Used inside the