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

check parent isn't undefined #24

Merged
merged 2 commits into from
May 29, 2019
Merged

check parent isn't undefined #24

merged 2 commits into from
May 29, 2019

Conversation

moloko
Copy link
Contributor

@moloko moloko commented Oct 19, 2018

before attempting to use it, fixes #23 (or at least it will once adaptlearning/adapt_framework#2244 is merged)

before attempting to use it, fixes #23
@@ -97,7 +97,7 @@ define([
try {
var model = Adapt.findById(id);
var parent = model.findAncestor("contentObjects");
Copy link
Contributor

Choose a reason for hiding this comment

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

Time to get rid of the try...catch then? One more tweak in that respect:

var parent = model && model.findAncestor("contentObjects");

Copy link
Contributor

@tomgreenfield tomgreenfield left a comment

Choose a reason for hiding this comment

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

👁️

@moloko moloko merged commit 273f540 into master May 29, 2019
@moloko moloko deleted the issue/#23 branch May 29, 2019 14:00
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.

prompt not being displayed when navigating between contentObjects
2 participants