ajacksified / ajacksified/Mediator.js
Difference in removing all / single subscriber
Đang mở
- Ngôn ngữ chính
- JavaScript
- Star
- 460
- Fork
- 75
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
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?
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Đánh giá
Issue này chưa được đánh giá.