Permalink
Browse files

Fix token replacement in jsonp plugin

  • Loading branch information...
1 parent 51a5ef2 commit a3c809c32282be9980f24a1c7a08f7be6a3460c7 @tmcw tmcw committed Mar 3, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 jsonp/jsonp.js
View
@@ -21,5 +21,5 @@ d3.jsonp = function (url, callback) {
script = d3.select('head')
.append('script')
.attr('type', 'text/javascript')
- .attr('src', url.replace(/(\{|%7B)callback(\{|%7D)/, cb));
+ .attr('src', url.replace(/(\{|%7B)callback(\}|%7D)/, cb));
};

0 comments on commit a3c809c

Please sign in to comment.