@uxland/event-aggregator
Advanced tools
Comparing version 1.0.0-alpha.6 to 1.0.0-alpha.7
@@ -6,2 +6,13 @@ # Change Log | ||
# [1.0.0-alpha.7](https://github.com/uxland/uxland/compare/@uxland/event-aggregator@1.0.0-alpha.6...@uxland/event-aggregator@1.0.0-alpha.7) (2020-02-21) | ||
### Bug Fixes | ||
* linter fixes ([0b4d460](https://github.com/uxland/uxland/commit/0b4d460b8d9942f2b0bbec65838ff2c53bdd67c3)) | ||
# [1.0.0-alpha.6](https://github.com/uxland/uxland/compare/@uxland/event-aggregator@1.0.0-alpha.5...@uxland/event-aggregator@1.0.0-alpha.6) (2020-02-20) | ||
@@ -8,0 +19,0 @@ |
@@ -1,2 +0,2 @@ | ||
// Event Aggregator v1.0.0-alpha.5 | ||
// Event Aggregator v1.0.0-alpha.6 | ||
// https://github.com/uxland/uxland/tree/master/packages/event-aggregator#readme | ||
@@ -3,0 +3,0 @@ // (c) 2020-2020 UXLand |
@@ -77,3 +77,3 @@ let STUB = 1; | ||
dispose() { | ||
let idx = subscribers.indexOf(handler); | ||
const idx = subscribers.indexOf(handler); | ||
if (idx !== -1) { | ||
@@ -86,3 +86,3 @@ subscribers.splice(idx, 1); | ||
subscribeOnce(event, callback) { | ||
let sub = this.subscribe(event, (a, b) => { | ||
const sub = this.subscribe(event, (a, b) => { | ||
sub.dispose(); | ||
@@ -89,0 +89,0 @@ return callback(a, b); |
@@ -115,3 +115,3 @@ "use strict"; | ||
dispose() { | ||
let idx = subscribers.indexOf(handler); | ||
const idx = subscribers.indexOf(handler); | ||
if (idx !== -1) { | ||
@@ -124,3 +124,3 @@ subscribers.splice(idx, 1); | ||
subscribeOnce(event, callback) { | ||
let sub = this.subscribe(event, (a, b) => { | ||
const sub = this.subscribe(event, (a, b) => { | ||
sub.dispose(); | ||
@@ -127,0 +127,0 @@ return callback(a, b); |
{ | ||
"name": "@uxland/event-aggregator", | ||
"version": "1.0.0-alpha.6", | ||
"version": "1.0.0-alpha.7", | ||
"description": "Event Aggregator", | ||
@@ -76,3 +76,3 @@ "author": "UXLand <dev@uxland.es>", | ||
}, | ||
"gitHead": "788f1de589336c5a6216279c07006f6439ea3c5e" | ||
"gitHead": "37c1a2e79335eb1197eda210da57f6d9cd71f065" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
20208