check that inverseDef exists before attempting to setup Inverse for belongsTo by pik · Pull Request #382 · js-data/js-data

Skip to content

Navigation Menu

Sign in

Appearance settings

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Conversation

@pik

Copy link Copy Markdown

Contributor

@pik pik commented

Aug 2, 2016

The only real change in this PR is the addition of guard conditions - but this also extracts removeInverseRelation / setupInverseRelation to their own functions. Currently the descriptor set is a very fat method and difficult to test (as well as to read). As a side effect, safeSetLink and safeSetProp got moved to utils.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Projects

None yet

Milestone

3.0.0 Release Candidate

Development

Successfully merging this pull request may close these issues.

2 participants

@pik @jmdobry