author | Kim Alvefur <zash@zash.se> |
Sat, 27 Sep 2014 19:57:33 +0200 | |
changeset 6438 | 689cb04ff9fd |
parent 6437 | 382e03a40dd2 |
child 6439 | 31ca87ea8d46 |
util/pubsub.lua | file | annotate | diff | comparison | revisions |
--- a/util/pubsub.lua Sat Sep 27 19:53:39 2014 +0200 +++ b/util/pubsub.lua Sat Sep 27 19:57:33 2014 +0200 @@ -278,7 +278,7 @@ end local node_data = self.data[node]; remove_item_by_id(node_data, id); - node_data[#self.data[node] + 1] = id; + node_data[#node_data + 1] = id; node_data[id] = item; self.events.fire_event("item-published", { node = node, actor = actor, id = id, item = item }); self.config.broadcaster("items", node, node_obj.subscribers, item);