Skip to content
This repository was archived by the owner on Mar 15, 2023. It is now read-only.

[Bugfix] ensure global does not leak #13

Merged
merged 5 commits into from
Jul 20, 2015
Merged

[Bugfix] ensure global does not leak #13

merged 5 commits into from
Jul 20, 2015

Conversation

stefanpenner
Copy link
Contributor

Now the application will remove its global on destruction.


assert.equal(window.Foo, 'blazorz');
assert.equal(window.Foo, app);
});

test('it does not set the global unless exportApplicationGlobal is true', function(assert) {
config.modulePrefix = 'foo';
config.exportApplicationGlobal = false;

Choose a reason for hiding this comment

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

is there already a test that does the opposite exportApplicationGlobal = true; ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

now we are: 9c12bfe i think thats what you meant

Choose a reason for hiding this comment

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

yeah that was my curiosity, thanks :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

:)

Now the application will remove its global on destruction.
stefanpenner added a commit that referenced this pull request Jul 20, 2015
[Bugfix] ensure global does not leak
@stefanpenner stefanpenner merged commit 407799d into master Jul 20, 2015
@stefanpenner stefanpenner deleted the fix-leak branch July 20, 2015 23:42
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants