Skip to content

Use this to prevent memory leak of application instance#604

Open
bobisjan wants to merge 1 commit intoember-fastboot:masterfrom
zonkyio:clear-double-boot-memory-leak
Open

Use this to prevent memory leak of application instance#604
bobisjan wants to merge 1 commit intoember-fastboot:masterfrom
zonkyio:clear-double-boot-memory-leak

Conversation

@bobisjan
Copy link
Copy Markdown
Contributor

@bobisjan bobisjan commented Aug 8, 2018

screen shot 2018-08-08 at 17 50 48

instance.didCreateRootView = function() {
clearHtml();
originalDidCreateRootView.apply(instance, arguments);
originalDidCreateRootView.apply(this, arguments);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@bobisjan Do you still have this issue? Is this due to babel transpilation? i.e. what happens if we convert the function to arrow syntax so it operates in the context of the enclosing scope?

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.

2 participants