lib/radiodan/event_binding.rb in radiodan-0.0.4 vs lib/radiodan/event_binding.rb in radiodan-1.0.0

- old
+ new

@@ -14,11 +14,14 @@ unless bindings logger.error "Event #{event} triggered but not found" end + # also, run the events bound to :all, no matter the event + bindings += event_bindings[:all] + bindings.each do |blk| - EM.next_tick { blk.call(data) } + EM::Synchrony.next_tick { blk.call(data) } end end def events event_bindings.keys.sort