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

Add guard for error handling #1159

Merged
merged 3 commits into from
Sep 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# 2.38.4-0 / Unreleased

- [Changed] #1143 Improve the appearance of vertical connectors of skin XP
- [Fixed] [#1157](https://github.com/mar10/fancytree/issues/1157) Sporadic error restoring expansion
- [Changed] #1143 Improve the appearance of vertical connectors of skin XP
- [Fixed] [#1157](https://github.com/mar10/fancytree/issues/1157) Sporadic error restoring expansion
- [Fixed] [#1158](https://github.com/mar10/fancytree/issues/1158) Add guard for error handling

# 2.38.3 / 2023-02-01

Expand Down
4 changes: 3 additions & 1 deletion src/jquery.fancytree.js
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,9 @@

// #1041: Raised exceptions may not be visible in the browser
// console if inside promise chains, so we also print directly:
$.ui.fancytree.error(msg);
if ($.ui && $.ui.fancytree) {
$.ui.fancytree.error(msg);
}

// Throw exception:
$.error(msg);
Expand Down
Loading