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

Reordering Sound.js export and its _initialize() call. #317

Open
wants to merge 1 commit into
base: 2.0
Choose a base branch
from

Conversation

probityrules
Copy link

The current version doesn't work in webpack, since it tries to create a reference to Sound, but the initialization for Sound includes creating instances of other classes (such as AbstractAudioWrapper) that require a reference to Sound which has yet to be created. By re-ordering the export so that it is exported before it is initialized, a reference for Sound exists for those classes requiring it in Sound's _initialize() invocation.

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.

1 participant