addyosmani / addyosmani/visibly.js

same Event Firing multiple time.

未關閉
#14 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
JavaScript
星號
221
分支
29
PR 合併指標
30 天內沒有已合併 PR

描述

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

貢獻指南

這個儲存庫沒有索引到貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。