Skip to content
Browse files

Add "off" as an alias for "unsubscribe"

  • Loading branch information...
1 parent dd3caa8 commit 2426e3b7879d4a837ded61cb8138f2f3b31cde2d @ttencate ttencate committed Sep 8, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/publisher.rb
View
1 lib/publisher.rb
@@ -70,6 +70,7 @@ def unsubscribe(event, listener)
end
end
end
+ alias :off :unsubscribe
# Unsubscribe from all events. Like calling 'unsubscribe' for all events that
# 'listener' has subscribed to.

0 comments on commit 2426e3b

Please sign in to comment.
Something went wrong with that request. Please try again.