Skip to content

Latest commit

 

History

History
14 lines (10 loc) · 491 Bytes

Trait:-EventTarget.md

File metadata and controls

14 lines (10 loc) · 491 Bytes

Properties

Name Trait Description
none  

Methods

on(name: string, listener: (eventData: Object) => void) => void

This method registers a new listener for the given event. The listener is called every time the event is emitted on the object.

emit(name: string, eventData: Object) => void

Emits an event with the given name on the object. Every registered listener for the event will be called.