addyosmani / addyosmani/visibly.js

same Event Firing multiple time.

Đang mở
#14 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
JavaScript
Star
221
Fork
29
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

visibly.onVisible and visibly.onHidden both are firing multiple time. I am working with socket, I have to disconnect socket on hidden and connect socket again on visible. But, due to multiple occurrence I am getting issue of multiple socket ids. I can not change Socket Implementation as of now.

But, what I want is to limit multiple execution to single time only.

Is there any idea, why this is happening, I have only single callback set up for both events.

Any type is really appreciable. Thanks

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á.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.