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

Issues found by repeated loading/unloading with sometimes failures #1792

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

kwanyyoss
Copy link

Hi,

I am using RequireJS in a project that requires repeatedly loading and unloading modules. I found 2 problems:

  1. Timeout cannot fire a second time.
  2. Some "anonymous" entries ("_@r??") were accumulated in the "registry" after failures.

I have tested using the given suite on up-to-date Edge, Chrome and Firefox.

Thanks!

	This change consists of 2 parts.  They are all related to thorough
cleanup of residual objects after "undef()" and loading failures.

1.  Fix to make timeout fire again in retry after having already fired for a
failure to load.

2.  Fix to clean up "anonymous" registry entries that had been put there as
intermediates after their prerequisites failed to load.
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.

None yet

1 participant