Changeset - a6f1b1c48314
[Not reviewed]
0 1 0
Tobias Schulmann - 6 years ago 2018-07-02 00:08:34
tobias.schulmann@googlemail.com
Remove ES6-specific code
1 file changed with 3 insertions and 3 deletions:
0 comments (0 inline, 0 general)
static/src/js/lot_hero.js
Show inline comments
...
 
@@ -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 dy = startY - endY;
 
    
...
 
@@ -95,7 +95,7 @@ function hero() {
 
    let yAdjust = (endY - startY) / increments;
 
    let counter = 1;
 
    
 
    let line = () => {
 
    function line() {
 
      context.beginPath();
 
      context.lineWidth = 1.9;
 
      context.moveTo(x, y);
...
 
@@ -112,7 +112,7 @@ function hero() {
 
    timeouts[ind] = window.setTimeout(line, delay);
 
  }
 
  
 
  let drawCircle = (context, x, y, radius, color) => {
 
  function drawCircle(context, x, y, radius, color) {
 
    context.beginPath();
 
    context.fillStyle = color;
 
    context.arc(x, y, radius, 0, 2 * Math.PI);
0 comments (0 inline, 0 general)