Skip to content

[BUGFIX beta] Fix assertion to make sure doesn't affect old CP syntax#10968

Merged
rwjblue merged 1 commit intoemberjs:masterfrom
cibernox:fix_breaking_assertion_on_cps
Apr 28, 2015
Merged

[BUGFIX beta] Fix assertion to make sure doesn't affect old CP syntax#10968
rwjblue merged 1 commit intoemberjs:masterfrom
cibernox:fix_breaking_assertion_on_cps

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