lib/deepstream/list.rb in deepstream-1.0.6 vs lib/deepstream/list.rb in deepstream-1.0.7
- old
+ new
@@ -80,10 +80,9 @@
def set
@client.send_message(TOPIC::RECORD, ACTION::UPDATE, @name, (@version += 1), @data.to_json) if @version
end
def set_new_data(new_data)
- p @data - new_data
(@data - new_data).each { |uid| notify_listeners(:removed, uid) }
(new_data - @data).each { |uid| notify_listeners(:added, uid) }
@data = new_data
end