Skip to content

Commit

Permalink
SychO suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
imorland committed Dec 22, 2020
1 parent f6ffba0 commit e19fce8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/src/forum/addPollToDiscussion.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export default () => {
}
});

extend(CommentPost.prototype, 'oncreate', function (context) {
extend(CommentPost.prototype, 'oncreate', function (call, vnode) {
if (app.pusher) {
app.pusher.then((channels) => {
channels.main.bind('newPollVote', (data) => {
Expand Down Expand Up @@ -54,7 +54,7 @@ export default () => {
}
});

extend(context, 'onremove', () => channels.main.unbind('newPollVote'));
extend(vnode, 'onremove', () => channels.main.unbind('newPollVote'));
});
}
});
Expand Down

0 comments on commit e19fce8

Please sign in to comment.