diff --git a/src/import/load-costume.js b/src/import/load-costume.js index b55f07ed6..a355edddc 100644 --- a/src/import/load-costume.js +++ b/src/import/load-costume.js @@ -32,12 +32,12 @@ const loadCostumeFromAsset = function (costume, costumeAsset, runtime) { return new Promise((resolve, reject) => { const imageElement = new Image(); const onError = function () { - // eslint-disable-next-line no-use-before-define + // eslint-disable-next-line no-use-before-define removeEventListeners(); reject(); }; const onLoad = function () { - // eslint-disable-next-line no-use-before-define + // eslint-disable-next-line no-use-before-define removeEventListeners(); resolve(imageElement); };