Skip to content

Conversation

@MSNev
Copy link
Collaborator

@MSNev MSNev commented May 16, 2023

No description provided.

@MSNev MSNev added this to the 3.0.2 milestone May 16, 2023
_contentHandler = new DomContentHandler(_config, logger);
let metaTags = _contentHandler.getMetadata();
_pageAction = new PageAction(this, _config, _contentHandler, _config.callback.pageActionPageTags, metaTags, logger);
_pageAction = new PageAction(_self, _config, _contentHandler, _config.callback.pageActionPageTags, metaTags, logger);
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the source of the issue in that when the onConfigChange is re-called the this is undefined which then causes the creation of a new PageAction with undefined as the ClickAnalytics instance.

I've also looked for a "fixed" other potential issues of the same in the other classes. This doesn't replace "all" of the this usages as there are some where the this does need to represent the current execution context (ie. this)

@MSNev MSNev merged commit 8a1214a into main May 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants