]> git.ipfire.org Git - thirdparty/Chart.js.git/commit
Fix the event handler when legend is disabled (#3544)
authorSimon Brunel <simonbrunel@users.noreply.github.com>
Thu, 3 Nov 2016 21:43:52 +0000 (22:43 +0100)
committerGitHub <noreply@github.com>
Thu, 3 Nov 2016 21:43:52 +0000 (22:43 +0100)
commita94885e32d611723f35393726dac93872e1b1a74
tree75f0f3026f8d6b33609063d013e59b7168b787c9
parent5012dcbdaefa7a11a8dfcd9ff264655e9860ee50
Fix the event handler when legend is disabled (#3544)

When legend is disabled (i.e. {options: {legend: false}}), me.legend is null. Add the same test on me.tooltip even if the tooltip object is always created in case of {options: {tooltips: false}}.
src/core/core.controller.js