提交 928aed6e 编写于 作者: R Rafael França

Merge pull request #128 from ma2gedev/patch1

fix typo
...@@ -162,7 +162,7 @@ $(document).on 'click', '[data-behavior~=appear_away]', -> ...@@ -162,7 +162,7 @@ $(document).on 'click', '[data-behavior~=appear_away]', ->
``` ```
Simply calling `App.cable.subscriptions.create` will setup the subscription, which will call `AppearanceChannel#subscribed`, Simply calling `App.cable.subscriptions.create` will setup the subscription, which will call `AppearanceChannel#subscribed`,
which in turn is linked to original `App.consumer` -> `ApplicationCable::Connection` instances. which in turn is linked to original `App.cable` -> `ApplicationCable::Connection` instances.
We then link `App.appearance#appear` to `AppearanceChannel#appear(data)`. This is possible because the server-side We then link `App.appearance#appear` to `AppearanceChannel#appear(data)`. This is possible because the server-side
channel instance will automatically expose the public methods declared on the class (minus the callbacks), so that these channel instance will automatically expose the public methods declared on the class (minus the callbacks), so that these
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册