mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-24 15:02:52 -05:00
Fix linter
This commit is contained in:
parent
81370f7625
commit
4a7ba534c1
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue