diff options
author | Javan Makhmali <javan@javan.us> | 2015-06-25 10:32:36 -0400 |
---|---|---|
committer | Javan Makhmali <javan@javan.us> | 2015-06-25 10:32:36 -0400 |
commit | 53d0b22aeeba1a585abe47b4a9417462b812d1a4 (patch) | |
tree | 5789c8f575e7d5ee7b548f7753ae83a6cae6ef59 /lib/assets/javascripts/cable/subscriber_manager.js.coffee | |
parent | c7f00661bf0cc54a73ccdb9d27fa10b0fd806e43 (diff) | |
download | rails-53d0b22aeeba1a585abe47b4a9417462b812d1a4.tar.gz rails-53d0b22aeeba1a585abe47b4a9417462b812d1a4.tar.bz2 rails-53d0b22aeeba1a585abe47b4a9417462b812d1a4.zip |
Switch back to original API and callback naming
Diffstat (limited to 'lib/assets/javascripts/cable/subscriber_manager.js.coffee')
-rw-r--r-- | lib/assets/javascripts/cable/subscriber_manager.js.coffee | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/assets/javascripts/cable/subscriber_manager.js.coffee b/lib/assets/javascripts/cable/subscriber_manager.js.coffee index 4f46efe817..98223d076c 100644 --- a/lib/assets/javascripts/cable/subscriber_manager.js.coffee +++ b/lib/assets/javascripts/cable/subscriber_manager.js.coffee @@ -5,12 +5,12 @@ class Cable.SubscriberManager add: (identifier, subscriber) -> @subscribers[identifier] = subscriber if @cable.sendCommand(identifier, "subscribe") - @notify(identifier, "onConnect") + @notify(identifier, "connected") reload: -> for identifier in Object.keys(@subscribers) if @cable.sendCommand(identifier, "subscribe") - @notify(identifier, "onConnect") + @notify(identifier, "connected") remove: (identifier) -> if subscriber = @subscribers[identifier] |