mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-24 06:52:40 -05:00
Change let to const
This commit is contained in:
parent
f7d80459c7
commit
72dee72148
1 changed files with 2 additions and 2 deletions
|
@ -845,8 +845,8 @@ class RenderedTarget extends Target {
|
||||||
*/
|
*/
|
||||||
postSpriteInfo (data) {
|
postSpriteInfo (data) {
|
||||||
const force = data.hasOwnProperty('force') ? data.force : null;
|
const force = data.hasOwnProperty('force') ? data.force : null;
|
||||||
let isXChanged = data.hasOwnProperty('x');
|
const isXChanged = data.hasOwnProperty('x');
|
||||||
let isYChanged = data.hasOwnProperty('y');
|
const isYChanged = data.hasOwnProperty('y');
|
||||||
if (isXChanged || isYChanged) {
|
if (isXChanged || isYChanged) {
|
||||||
this.setXY(isXChanged ? data.x : this.x, isYChanged ? data.y : this.y, force);
|
this.setXY(isXChanged ? data.x : this.x, isYChanged ? data.y : this.y, force);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue