Closed nlfiedler closed 5 years ago
Thanks for the suggestion @nlfiedler but I would prefer the module to stick with classic vanilla Javascript.
I've never been a fan of Promises. I don't find the style as clean as pure callback error handling. Promises also add runtime overhead.
The demo is all well and good, but for an application, something based on Promises seems more suitable. I offer this bit of code that is working for me:
For demo purposes, this would need a
.then()
and some console logging to match the current demo. Let me know if this is useful and I can create a proper pull request. Or not, and feel free to close this.