lib/frankenpins/button.rb in frankenpins-0.2.1 vs lib/frankenpins/button.rb in frankenpins-0.3.0

- old
+ new

@@ -22,10 +22,10 @@ # Always fire a changed event raise_event :changed end end - def on(event_name, &block) + def when(event_name, &block) send(event_name).register(&block) end end end