Refactor code to use es6
darkf opened this issue · 1 comments
darkf commented
ES6 brings a lot of nice things like arrow functions, for..of, promises, etc. We should be using them now.
A lot of the callback hell spaghetti can be replaced with promises (which as a huge benefit makes our asynchronous code composable, and will replace monsters like the image loading stuff -- we can use Promise.all instead).