Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add "off" as an alias for "unsubscribe"

  • Loading branch information...
commit 2426e3b7879d4a837ded61cb8138f2f3b31cde2d 1 parent dd3caa8
@ttencate authored
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.
Please sign in to comment.
Something went wrong with that request. Please try again.