WeightsDrawer.prototype.draw = function() {
var drawer = this;
- d3.json(WeightsDrawer.onionoo_url, function(error, raw_data) {
+ d3.json(WeightsDrawer.onionoo_url)
+ .then(function(raw_data) {
d3.select(drawer.selector).text("");
drawer.draw_weights_graph(raw_data);
});