Changeset

6435:689cb04ff9fd

util.pubsub: Use local
author Kim Alvefur <zash@zash.se>
date Sat, 27 Sep 2014 19:57:33 +0200
parents 6434:382e03a40dd2
children 6436:31ca87ea8d46
files util/pubsub.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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);