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

If an Error is thrown in the append method of a widget, the panelDiv should be removed #119

Open
shakty opened this issue Jan 28, 2020 · 0 comments

Comments

@shakty
Copy link
Member

shakty commented Jan 28, 2020

Or not appended at all before. However, some widgets might want to know the exact location of the appended widget on the page, so this is not a good solution.

Probably, the best is a try-catch here:

w.bodyDiv = W.append('div', w.panelDiv, { className: tmp });

Or enabling a return error code.

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

No branches or pull requests

1 participant