MCPcopy
hub / github.com/uNmAnNeR/imaskjs / on

Method on

packages/imask/src/controls/input.ts:304–308  ·  view source on GitHub ↗

Adds listener on custom event

(ev: string, handler: InputMaskEventListener)

Source from the content-addressed store, hash-verified

302
303 /** Adds listener on custom event */
304 on (ev: string, handler: InputMaskEventListener): this {
305 if (!this._listeners[ev]) this._listeners[ev] = [];
306 this._listeners[ev].push(handler);
307 return this;
308 }
309
310 /** Removes custom event listener */
311 off (ev: string, handler: InputMaskEventListener): this {

Callers 10

initMaskMethod · 0.80
initMaskFunction · 0.80
useIMaskFunction · 0.80
initMaskMethod · 0.80
_initMaskFunction · 0.80
_initMaskFunction · 0.80
_initMaskFunction · 0.80
initMaskFunction · 0.80
createMaskedInputFunction · 0.80
maskedFunction · 0.80

Calls 1

pushMethod · 0.80

Tested by

no test coverage detected