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

Remove usage of chainable functions .readOnly() #951

Merged
merged 1 commit into from
Mar 18, 2019

Conversation

gabz75
Copy link
Contributor

@gabz75 gabz75 commented Mar 18, 2019

Fixes #950

init() {
this._super(...arguments);
this.set('_channel', new MessageChannel());
this.set('_chromePort', this.get('_channel.port1'));
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I doubled check that no code is setting these two variables and since we expect variables starting with _ we should be good?

Copy link
Member

Choose a reason for hiding this comment

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

I agree 👍

@@ -419,20 +419,6 @@ module('Ember Debug - Object Inspector', function(hooks) {
assert.equal(serializedComputedProperty.dependentKeys[1], "bar");
});

test('Read Only Computed properties mush have a readOnly property', function(assert) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This test seems silly as it's just testing core ember stuff. Removing it.

@RobbieTheWagner RobbieTheWagner merged commit bb6bed5 into emberjs:master Mar 18, 2019
@gabz75 gabz75 deleted the remove-read-only branch March 20, 2019 20:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants