summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2017-01-12 12:18:59 -0700
committermo khan <mo@mokhan.ca>2017-01-12 12:18:59 -0700
commit818d0e04ebb7d95301c671bbcf2fa883d07e092f (patch)
tree52dcf76213544449a061baffd5f5b76644c17189
parentdad49f47cfef756e7f40c417a607ab4265ddb0d7 (diff)
use better variable names.
-rw-r--r--app/infrastructure/event-aggregator.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/app/infrastructure/event-aggregator.js b/app/infrastructure/event-aggregator.js
index 429caa4..eae0e49 100644
--- a/app/infrastructure/event-aggregator.js
+++ b/app/infrastructure/event-aggregator.js
@@ -14,10 +14,10 @@ export default class EventAggregator {
}
unsubscribe(subscriber) {
- for (var event in this.subscriptions) {
- let items = this._subscriptionsFor(event)
- if (items.has(subscriber)) {
- items.delete(subscriber);
+ for (var subscription in this.subscriptions) {
+ let subscribers = this._subscriptionsFor(subscription)
+ if (subscribers.has(subscriber)) {
+ subscribers.delete(subscriber);
}
}
}