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

Update to 3.12 #202

Merged
merged 10 commits into from
Nov 23, 2019
Merged

Update to 3.12 #202

merged 10 commits into from
Nov 23, 2019

Conversation

snewcomer
Copy link
Collaborator

No description provided.

@snewcomer snewcomer self-assigned this Jun 11, 2019
set(this, 'key', stateUuid);
const key = getWithDefault(this, 'key', '-1');

return getWithDefault(scrollMap, key, scrollMap.default);

Choose a reason for hiding this comment

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

Maybe don't use getWithDefault? It only defaults if the value of the key is undefined, but if it's null then the default value won't be used.
https://github.com/emberjs/ember.js/blob/master/packages/%40ember/-internals/metal/lib/property_get.ts#L192

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Ah right. Great point. Just saw an RFC to deprecate as well. It is confusing!

@snewcomer snewcomer changed the title Update to 3.10 Update to 3.12 Nov 9, 2019
@snewcomer snewcomer merged commit 25f0a1f into master Nov 23, 2019
@snewcomer snewcomer deleted the sn/3.10 branch November 23, 2019 23:10
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