mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-23 14:32:59 -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) => {
|
||||
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);
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue