Skip to content

Commit

Permalink
Add "off" as an alias for "unsubscribe"
Browse files Browse the repository at this point in the history
  • Loading branch information
ttencate committed Sep 8, 2012
1 parent dd3caa8 commit 2426e3b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/publisher.rb
Expand Up @@ -70,6 +70,7 @@ def unsubscribe(event, listener)
end end
end end
end end
alias :off :unsubscribe


# Unsubscribe from all events. Like calling 'unsubscribe' for all events that # Unsubscribe from all events. Like calling 'unsubscribe' for all events that
# 'listener' has subscribed to. # 'listener' has subscribed to.
Expand Down

0 comments on commit 2426e3b

Please sign in to comment.