A workflow for modern frontend development.
npm install @pluginjs/simple-emitter
simple-emitter is a utility JavaScript library for event emitter.
#### Yarn
``javascript`
yarn add @pluginjs/simple-emitter
#### NPM
`javascript`
npm i @pluginjs/simple-emitter
CDN:
Development:
`html`
Production:
`html`
Parameters
| Name | Type | Description |
|||-|
| event | String | event name |
| args | Any[] | args for handler |
Returns
| Name | Type | Description |
|||-|
| Ok | Boolean | |
Parameters
| Name | Type | Description |
|||-|
| event | String | event name |
| listener | Function | handler |
| context | Object | this |
| priority | Number | priority level |
Returns
| Name | Type | Description |
|||-|
| this | Object | Instance |
Parameters
| Name | Type | Description |
|||-|
| event | String | event name |
| listener | Function | handler |
| context | Object | this |
| priority | Number | priority level |
Returns
| Name | Type | Description |
|||-|
| this | Object | Instance |
Parameters
| Name | Type | Description |
|||-|
| event | String | event name |
| listener | Function | handler |
Returns
| Name | Type | Description |
|||-|
| this | Object | Instance |
Parameters
| Name | Type | Description |
|||-|
| event | String | event name |
| listener | Function | handler |
| context | Object | this |
| priority | Number | priority level |
Returns
| Name | Type | Description |
|||-|
| this | Object | Instance |
Parameters
| Name | Type | Description |
|||-|
| event | String | event name |
| listener | Function | handler |
| context | Object | this |
| priority | Number | priority level |
Returns
| Name | Type | Description |
|||-|
| this | Object | Instance |
Parameters
| Name | Type | Description |
|||-|
| event | String | event name |
| listener | Function | handler |
Returns
| Name | Type | Description |
|||-|
| this | Object | Instance |
Parameters
Parameters
| Name | Type | Description |
|||-|
| event | String | event name |
Returns
| Name | Type | Description |
|||-|
| this | Object | Instance |
Parameters
| Name | Type | Description |
|||-|
| listener | Function | handler |
Returns
| Name | Type | Description |
|||-|
| this | Object | Instance |
Parameters
| Name | Type | Description |
|||-|
| event | String | event name |
Returns
| Name | Type | Description |
|||-|
| this | Object | Instance |
Parameters
| Name | Type | Description |
|||-|
| event | String | event name |
Returns
| Name | Type | Description |
|||-|
| listeners | Array` | |
Tested on all major browsers.
|
IE / Edge |
Firefox |
Chrome |
Safari |
Opera |
| --------- | --------- | --------- | --------- | --------- |
| IE11, Edge| last 2 versions| last 2 versions| last 2 versions| last 2 versions|
@pluginjs/simple-emitter is Licensed under the GPL-v3 license.
If you want to use @pluginjs/simple-emitter project to develop commercial sites, themes, projects, and applications, the Commercial license is the appropriate license. With this option, your source code is kept proprietary.
For purchase an Commercial License, contact us purchase@thecreation.co.
Copyright (C) 2022 Creation Studio Limited.