Fix linter

This commit is contained in:
Paul Kaplan 2017-09-11 15:15:30 -04:00
parent 81370f7625
commit 4a7ba534c1

View file

@ -32,12 +32,12 @@ const loadCostumeFromAsset = function (costume, costumeAsset, runtime) {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
const imageElement = new Image(); const imageElement = new Image();
const onError = function () { const onError = function () {
// eslint-disable-next-line no-use-before-define // eslint-disable-next-line no-use-before-define
removeEventListeners(); removeEventListeners();
reject(); reject();
}; };
const onLoad = function () { const onLoad = function () {
// eslint-disable-next-line no-use-before-define // eslint-disable-next-line no-use-before-define
removeEventListeners(); removeEventListeners();
resolve(imageElement); resolve(imageElement);
}; };