Closed GA-MEB closed 8 years ago
Also, use arrow functions where they make sense. Remember, they change this
to lexical scope, so it can break things. I'm still figuring this out. I usually try an arrow function, and if I get an error, try a normal function.
It should be noted (though not necessarily in the repo itself) that this requires Chrome 49+ or Microsoft Edge 14+. Firefox doesn't fully support let
or const
yet on any version.
Doing this has introduced a new issue - running scripts by pasting them into the console is awkward. We should try to find a better way to handle this.
Replacing
var
withlet
andconst
, primarily.