From d026e5340cc960baa7c4b2202cf50631673e094f Mon Sep 17 00:00:00 2001 From: izumin5210 Date: Fri, 7 Jul 2017 15:54:59 +0900 Subject: [PATCH] Add removeEventListener(), removeListener() and off() to ace --- types/ace/index.d.ts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/types/ace/index.d.ts b/types/ace/index.d.ts index 58bf1c2bd8..456727756c 100644 --- a/types/ace/index.d.ts +++ b/types/ace/index.d.ts @@ -1041,6 +1041,12 @@ declare namespace AceAjax { addEventListener(ev: 'change', callback: (ev: EditorChangeEvent) => any): void; addEventListener(ev: string, callback: Function): void; + off(ev: string, callback: Function): void; + + removeListener(ev: string, callback: Function): void; + + removeEventListener(ev: string, callback: Function): void; + inMultiSelectMode: boolean; selectMoreLines(n: number): void; @@ -2166,8 +2172,16 @@ declare namespace AceAjax { **/ export interface Selection { + on(ev: string, callback: Function): void; + addEventListener(ev: string, callback: Function): void; + off(ev: string, callback: Function): void; + + removeListener(ev: string, callback: Function): void; + + removeEventListener(ev: string, callback: Function): void; + moveCursorWordLeft(): void; moveCursorWordRight(): void;