Skip to content

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

Open
probityrules wants to merge 1 commit into
CreateJS:2.0from
gopherwood:bugfix/webpack-import
Open

probityrules wants to merge 1 commit into
CreateJS:2.0from
gopherwood:bugfix/webpack-import

Conversation

@probityrules

Copy link
Copy Markdown

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

1 participant