Recently came across the library and started to take a look how it is implemented. And what would be better way to explore the library than refactor/modernize it a bit? This pr doesn't touch the logic, only takes some es6 features into use, like es6 classes and export/import.
Notable changes:
Now the library doesn't assign it self to window anymore.
Also test setup might still need some adjusting. Please go trough the pr with care. (and as a pro tip, use ?w=1 query param to get rid of white space changes)
Not sure if i was supposed to submit built version too. It's the last commit so it can be removed easily.
Recently came across the library and started to take a look how it is implemented. And what would be better way to explore the library than refactor/modernize it a bit? This pr doesn't touch the logic, only takes some es6 features into use, like es6 classes and export/import.
Notable changes: Now the library doesn't assign it self to window anymore.
Also test setup might still need some adjusting. Please go trough the pr with care. (and as a pro tip, use ?w=1 query param to get rid of white space changes)
Not sure if i was supposed to submit built version too. It's the last commit so it can be removed easily.