Skip to content

Commit

Permalink
Adds prefix to jsonp callbacks
Browse files Browse the repository at this point in the history
- Prevents collision with libraries using the default prefix
- See duojs/test#69

Signed-off-by: Christopher Rogers <chrissrogers@gmail.com>
  • Loading branch information
chrissrogers committed Jun 18, 2015
1 parent 8387118 commit 3e152e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/recurly.js
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ Recurly.prototype.jsonp = function (route, data, done) {

var url = this.url(route) + '?' + qs.stringify(data);

jsonp(url, { timeout: this.config.timeout }, function (err, res) {
jsonp(url, { timeout: this.config.timeout, prefix: '__rjs' }, function (err, res) {
if (err) return done(err);
if (res.error) {
done(errors('api-error', res.error));
Expand Down

0 comments on commit 3e152e8

Please sign in to comment.