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

[BUGFIX beta] Only add deprecated container after create when present. #12699

Merged
merged 1 commit into from
Dec 9, 2015

Conversation

rwjblue
Copy link
Member

@rwjblue rwjblue commented Dec 9, 2015

When the object returned from calling .create on a non-extendable factory does not contain a container property, do not set it.

Previously, in Ember 2.2.0 it was possible to use non-extendable factories that were frozen after creation. After the changes to add a mock container to .create and swap that with the deprecated property after .create was finished, we trigger errors for anything that is frozen or sealed.


Addresses FirebaseExtended/emberfire#340

When the object returned from calling `.create` on a non-extendable
factory does not contain a `container` property, do not set it.

Previously, in Ember 2.2.0 it was possible to use non-extendable
factories that were frozen after creation. After the changes to add a
mock container to `.create` and swap that with the deprecated
property after `.create` was finished, we trigger errors for anything
that is frozen or sealed.
@knownasilya
Copy link
Contributor

Sweetness!

@dgeb
Copy link
Member

dgeb commented Dec 9, 2015

LGTM 👍

rwjblue added a commit that referenced this pull request Dec 9, 2015
[BUGFIX beta] Only add deprecated container after create when present.
@rwjblue rwjblue merged commit 31eadb4 into emberjs:master Dec 9, 2015
@rwjblue rwjblue deleted the do-not-change-frozen-things branch December 9, 2015 23:29
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.

3 participants