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) => {
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);
};