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] Fix assertion to make sure doesn't affect old CP syntax #10968

Merged
merged 1 commit into from
Apr 28, 2015

Conversation

cibernox
Copy link
Contributor

In #10761 I introduced an assertion was raised on readOnly when the function has a setter.
While this is a reasonable check, it is a breaking change for people using the old CP syntax.

This assertion is only thrown if the getter and setter functions are different, so won't affect existing users.

/cc @tomdale

rwjblue added a commit that referenced this pull request Apr 28, 2015
[BUGFIX beta] Fix assertion to make sure doesn't affect old CP syntax
@rwjblue rwjblue merged commit 9e91371 into emberjs:master Apr 28, 2015
@cibernox cibernox deleted the fix_breaking_assertion_on_cps branch April 28, 2015 12:27
@tomdale
Copy link
Member

tomdale commented Apr 28, 2015

Looks good, my only suggestion is to change the message to not use the phrase "new syntax", since this will be very confusing for new users in a few months who only know of the new syntax.

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