From 062e729c6dc97899c213421a4feaa48074240e1d Mon Sep 17 00:00:00 2001 From: Derek Detweiler Date: Thu, 25 Jul 2019 21:18:42 -0400 Subject: [PATCH] Reordered Sound.js export and `_initialize()` call so that `Sound` exists before initialization. --- src/Sound.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/Sound.js b/src/Sound.js index 291a2692..c459f17f 100644 --- a/src/Sound.js +++ b/src/Sound.js @@ -2,7 +2,7 @@ import Group from "./Group"; import Sample from "./Sample"; import { EventDispatcher } from "@createjs/core"; -class Sound { +export default class Sound { // Sets up all static class defaults. This function is immediately invoked below the Sound class definition to ensure it runs. static _initialize() { @@ -636,6 +636,4 @@ class Sound { } } -Sound._initialize(); - -export default Sound; +Sound._initialize(); \ No newline at end of file