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 decorators from relationships #419

Merged
merged 5 commits into from
Dec 21, 2022
Merged

remove decorators from relationships #419

merged 5 commits into from
Dec 21, 2022

Conversation

jondayton
Copy link
Contributor

No description provided.

spec/Store.spec.js Outdated Show resolved Hide resolved
@jondayton jondayton changed the base branch from main to jsdoc December 20, 2022 16:21
Base automatically changed from jsdoc to main December 20, 2022 18:28
jondayton and others added 4 commits December 20, 2022 17:40
@@ -939,45 +947,76 @@ class Store {
* @returns {Function} model constructor
*/
getKlass (type) {
return this.modelTypeIndex[type]
return this.models.find((model) => model.type === type)

Choose a reason for hiding this comment

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

Do we need modeltypeindex any more.

Copy link

@matthewmarone matthewmarone left a comment

Choose a reason for hiding this comment

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

Wow!

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