From a9a37f9ad38dd70b6bd9f961cbb4b158cde66b8d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Ml=C3=A1dek?= Date: Mon, 29 Jan 2018 15:47:11 +0100 Subject: [PATCH] cosmetic syntax tweaks --- src/components/Player.vue | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/components/Player.vue b/src/components/Player.vue index cfb2c7d..786c5d5 100644 --- a/src/components/Player.vue +++ b/src/components/Player.vue @@ -152,10 +152,7 @@ $render: function () { let frame = this.frame_sequence[this.position] if (frame === undefined) return - let x = frame[0] - let y = frame[1] - let w = frame[2] - let h = frame[3] + let [x, y, w, h] = frame if (w !== this.width || h !== this.height) this.clear('black') this.tmp_ctx.drawImage(this.image, x, y, w, h,