Closed clifff closed 11 years ago
Yeah. I also got this issue. My my correction was: var jsonp = 'jsonp' + new Date().getTime() + '' + Math.round(1000000 * Math.random());
FXB, are you gonna merge this into the main release?
It looks like FXB isn't around. clifff, I'm going to be pulling from your branch instead.
worked fine thanks.
Chiming in to say this fixed an issue I was having as well. I have code that tunes the radio, then immediately gets a playlist. This bug would always result in a missed callback from the tune option.
Thanks!
Slowest response time ever. Sorry ;-)
Hey fxb,
I've been using this library for a project, and ran into a bug when making concurrent requests to the API. In particular, if calls happen too fast, the JSONP callback name may not be unique, resulting in missed callbacks. All I did was add a counter to help ensure uniqueness.
Here is an example of code that illustrates the bug, and is fixed by the patch:
https://gist.github.com/742237
Clif