lib/lanes/concerns/pub_sub.rb in lanes-0.1.9.5 vs lib/lanes/concerns/pub_sub.rb in lanes-0.3.0
- old
+ new
@@ -111,10 +111,9 @@
end
def fire_pubsub_event(name, *arguments)
return if self.class._event_listeners.nil? ||
!self.class._event_listeners.has_key?(name.to_sym)
- arguments = arguments.dup.unshift(self)
self.class._event_listeners[ name.to_sym ].each{ | block |
block.call(*arguments)
}
end