From 4a7ba534c1a507248d72e0aab77d265e3ff51305 Mon Sep 17 00:00:00 2001 From: Paul Kaplan Date: Mon, 11 Sep 2017 15:15:30 -0400 Subject: [PATCH] Fix linter --- src/import/load-costume.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); };