Sha256: 1e072efbb0d484cbed51fcbe692d93877948150079ced605c5b46ef4285c76dc
Contents?: true
Size: 573 Bytes
Versions: 6
Compression:
Stored size: 573 Bytes
Contents
# Provides methods for objects that store reactive value's to trigger module ObjectTracking def __setup_tracking(key, value) if value.reactive? puts "Value: #{value.inspect} - #{key}" # TODO: We should build this in so it fires just for the current index. # Currently this is a big performance hit. chain_listener = event_chain.add_object(value.reactive_manager) do |event, *args| yield(event, key, args) end @reactive_element_listeners ||= {} @reactive_element_listeners[key] = chain_listener end end end
Version data entries
6 entries across 6 versions & 1 rubygems