locache
locache copied to clipboard
Deferred implementation failing in IE8.
There is a bug with the postMessage code that I've not been able to figure out yet.
I would recommend you using Promise
to implement the deferred/async stuff because developers already know the pattern.
Please don't introduce your own framework to handle that.
http://modernjavascript.blogspot.co.at/2013/09/promise-patterns.html
http://12devs.co.uk/articles/promises-an-alternative-way-to-approach-asynchronous-javascript/
https://gist.github.com/domenic/3889970
Contributions welcome! I'm no longer actively working on this.
@d0ugal, i know this is an old topic but... what about beacking the backwards compatibility? If u accept i can make a pull request with the Promises implementation.
Sure, I would be happy to merge that.
do u want to make
the version yourself?
@sipmann We can worry about that after the change happens - but if you want to do it you can.