lib/emittance/dispatchers/synchronous.rb in emittance-1.1.0 vs lib/emittance/dispatchers/synchronous.rb in emittance-2.0.0.pre.1
- old
+ new
@@ -9,9 +9,10 @@
class << self
private
def _process_event(event)
registrations_for(event).each do |registration|
+ event = Emittance::Middleware.down(event)
registration.call event
end
end
def _register(identifier, _params = {}, &callback)