summaryrefslogtreecommitdiffstats
path: root/js/service/Publisher.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/service/Publisher.js')
-rw-r--r--js/service/Publisher.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/service/Publisher.js b/js/service/Publisher.js
index b6ea722ce..d4efa4a80 100644
--- a/js/service/Publisher.js
+++ b/js/service/Publisher.js
@@ -25,10 +25,10 @@ app.service('Publisher', function () {
};
this.publishAll = (data) => {
- for (let channel in data) {
+ for (let [channel, messages] of items(data)) {
if (this.channels[channel] !== undefined) {
for (let listener of this.channels[channel]) {
- listener.receive(data[channel], channel);
+ listener.receive(messages, channel);
}
}
}