OS.js is an open-source web desktop platform with a window manager, application APIs, GUI toolkit, filesystem abstractions and much more.
This is a EventEmitter implementation for OS.js.
on('event-name', () => {}); // Fired every time event is emitted
once('event-name', () => {}); // Fires only once and is forgotten
off('event-name', () => {}); // Removes listener
off('event-name'); // Removes all listeners of this type
off(); // Removes all listeners
on('event-name', () => {}, {persist: true}); // Will not be removed unless forced
off('event-name', () => {}, true); // Force removal
- Sponsor on Github
- Become a Patreon
- Support on Open Collective
- Contribution Guide
See the Official Manuals for articles, tutorials and guides.