Update tooltip only when things change (which will only trigger customTooltips when model changes)

This commit is contained in:
Tanner Linsley 2015-10-31 18:17:32 -06:00
parent 5ba1ec0d3b
commit 22aabdbfab

View File

@ -484,6 +484,9 @@
(this.lastTooltipActive.length !== this.tooltipActive.length) || (this.lastTooltipActive.length !== this.tooltipActive.length) ||
changed) { changed) {
if (this.options.tooltips.enabled || this.options.tooltips.custom) {
this.tooltip.update();
}
this.stop(); this.stop();
console.log('render'); console.log('render');