MakeBetter / Units

Enhanced navigation on the web
1 stars 0 forks source link

on Google search, the method updateCUsAndRelatedState is being called continuously #164

Closed tanushree0 closed 11 years ago

tanushree0 commented 11 years ago

The reason for this issue is that we were not clearing 'interval_updateCUsTillDomReady' on reset.

In normal circumstances, interval_updateCUsTillDomReady is cleared on DOM Ready. But on Google Search, sometimes the page URL changes before DOM Ready. On URL change, we reset the module and set it up again.

The previous 'interval_updateCUsTillDomReady' never gets cleared (in reset) and so updateCUsAndRelatedState keeps getting called continuously.