Remove ES6-specific code

This commit is contained in:
Tobias Schulmann 2018-07-02 12:08:34 +12:00
parent 690c4495ad
commit a6f1b1c483

View file

@ -79,7 +79,7 @@ function hero() {
} }
} }
let drawLine = (ind, context, startX, startY, endX, endY, color) => { function drawLine(ind, context, startX, startY, endX, endY, color) {
let dx = startX - endX; let dx = startX - endX;
let dy = startY - endY; let dy = startY - endY;
@ -95,7 +95,7 @@ function hero() {
let yAdjust = (endY - startY) / increments; let yAdjust = (endY - startY) / increments;
let counter = 1; let counter = 1;
let line = () => { function line() {
context.beginPath(); context.beginPath();
context.lineWidth = 1.9; context.lineWidth = 1.9;
context.moveTo(x, y); context.moveTo(x, y);
@ -112,7 +112,7 @@ function hero() {
timeouts[ind] = window.setTimeout(line, delay); timeouts[ind] = window.setTimeout(line, delay);
} }
let drawCircle = (context, x, y, radius, color) => { function drawCircle(context, x, y, radius, color) {
context.beginPath(); context.beginPath();
context.fillStyle = color; context.fillStyle = color;
context.arc(x, y, radius, 0, 2 * Math.PI); context.arc(x, y, radius, 0, 2 * Math.PI);