Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Clearing the context immediately to avoid sending multiple remove eve… #318
…nts in case of quick refreshes
When we have a case of multiple refreshes in the browser in a quick succession, sometimes we have a case where we don't reach the point of clearing the context and, in turn _scriptById, while sending out 'remove' events from the previous refresh.
We should clear the context as soon as we populate the cachedScriptParsedEvents array.