Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix teardown all to support teardowns that trigger other teardowns. #194

Merged
merged 3 commits into from
Oct 30, 2013
Merged

Fix teardown all to support teardowns that trigger other teardowns. #194

merged 3 commits into from
Oct 30, 2013

Conversation

tgvashworth
Copy link
Contributor

Was playing with how to nest components and make sure that all components are properly torn down – essentially building a helper for the technique talked about on the mailing list(s).

@@ -108,5 +108,33 @@ define(['lib/component'], function (defineComponent) {
}).toThrow('utils.push attempted to overwrite "core" while running in protected mode');
});

ddescribe('teardownAll', function () {
Copy link
Contributor

Choose a reason for hiding this comment

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

change to 'describe' :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oops!

@angus-c
Copy link
Contributor

angus-c commented Oct 24, 2013

can you make it this style to be more consistent with other flight code?

if (info && info.instance) {
  info.instance.teardown();
}

angus-c added a commit that referenced this pull request Oct 30, 2013
Fix teardown all to support teardowns that trigger other teardowns.
@angus-c angus-c merged commit f80dd20 into flightjs:master Oct 30, 2013
@tgvashworth tgvashworth deleted the fix-teardown-all branch January 23, 2014 10:21
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.

None yet

3 participants