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

Component.mixin returns a new Component, added more tests #242

Merged
merged 1 commit into from
Apr 17, 2014

Conversation

angus-c
Copy link
Contributor

@angus-c angus-c commented Apr 17, 2014

No description provided.

newPrototype.mixedIn = [].concat(Component.prototype.mixedIn);
compose.mixin(newPrototype, arguments);
newComponent.prototype = newPrototype;
newComponent.prototype.constructor = newComponent;
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit: would assign this to newPrototype rather two dots deep.

@sayrer
Copy link
Collaborator

sayrer commented Apr 17, 2014

lgtm assuming we can get our large projects to pass with this, and we fix the pretty print

sayrer added a commit that referenced this pull request Apr 17, 2014
Component.mixin returns a new Component, added more tests
@sayrer sayrer merged commit 239b272 into master Apr 17, 2014
@necolas necolas deleted the no_mutate_on_mixin branch June 25, 2014 22:49
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