ajacksified / ajacksified/Mediator.js

Difference in removing all / single subscriber

オープン
#30 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
JavaScript
スター
460
フォーク
75
PR マージ指標
30日以内にマージされた PR はありません

説明

I was looking at the `removeSubscriber` method of the `Channel` object and I noticed something that I can't explain.

When removing a specific subscriber you set the `channel` property of the subscriber to `null` before removing it from the array of subscribers. When all the subscribers get cleared due to the `id` param being `null` the array is simply cleared and the `channel` property on all the subscribers don't get reset to `null`.

Is there a specific reason for this or is it an oversight?

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。