this.$('[data-toggle="tooltip"]').tooltip({ container: 'body', placement: 'bottom' });
},
- onClose: function () {
- // TODO why onClose? why not onDestroy?
- Popup.prototype.onClose.apply(this, arguments);
+ onDestroy: function () {
+ Popup.prototype.onDestroy.apply(this, arguments);
this.$('[data-toggle="tooltip"]').tooltip('destroy');
},
.on('mouseenter', function(d, i) {
return enterHandler(d3.select(this), d.data, i, true);
})
- .on('mouseleave', function(d, i) {
- return leaveHandler(d3.select(this), d.data, i, true);
+ .on('mouseleave', function() {
+ return leaveHandler(d3.select(this));
})
.on('click', function(d) {
return clickHandler(d.data);
return enterHandler(d3.select(widget.sectors[0][i]), d, i, false);
})
.on('mouseleave', function(d, i) {
- return leaveHandler(d3.select(widget.sectors[0][i]), d, i, false);
+ return leaveHandler(d3.select(widget.sectors[0][i]));
})
.on('click', function(d) {
return clickHandler(d);