| 1 |
Rickshaw.namespace('Rickshaw.Graph.JSONP'); |
| 2 |
|
| 3 |
Rickshaw.Graph.JSONP = Rickshaw.Class.create( Rickshaw.Graph.Ajax, { |
| 4 |
|
| 5 |
request: function() { |
| 6 |
|
| 7 |
jQuery.ajax( { |
| 8 |
url: this.dataURL, |
| 9 |
dataType: 'jsonp', |
| 10 |
success: this.success.bind(this), |
| 11 |
error: this.error.bind(this) |
| 12 |
} ); |
| 13 |
} |
| 14 |
} ); |