mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-25 12:00:38 +08:00
Merge pull request #2642 from yellowiscool/master
[Leaflet] Small changes on L.DomEvent
This commit is contained in:
commit
c773444c76
1 file changed
+3
-1
Vendored
+3
-1
@@ -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): DomEvent;
|
||||
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
|
||||
|
||||
Reference in new issue
Block a user