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

done in callbacks and require #17

Open
viT-1 opened this issue Feb 27, 2023 · 0 comments
Open

done in callbacks and require #17

viT-1 opened this issue Feb 27, 2023 · 0 comments

Comments

@viT-1
Copy link

viT-1 commented Feb 27, 2023

I found surprising me behaviour.
If I use depp.done in callback, I can't depp.require it at once: depp.require(['dep1', 'dep1 cb done'], finalCb);.
Demo

As a workaround I use two depp.require:

depp.require(['dep1'], function () { depp.require(['dep1 cb done'], finalCb); });

or

depp.require(['dep1'], cb);
depp.require(['dep1 cb done'], finalCb);
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

No branches or pull requests

1 participant