Change let to const

This commit is contained in:
sjhuang26 2017-12-29 09:13:18 -05:00
parent f7d80459c7
commit 72dee72148

View file

@ -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);
} }