]> git.ipfire.org Git - thirdparty/Chart.js.git/commit
Fix onHover event not being triggered (#4297)
authorRicardo Costa <ricardocosta89@users.noreply.github.com>
Sun, 28 May 2017 21:23:20 +0000 (22:23 +0100)
committerEvert Timberg <evert.timberg+github@gmail.com>
Sun, 28 May 2017 21:23:20 +0000 (17:23 -0400)
commitdab0a7f699f18cf73bd2af19760bbe0b4d0d703c
tree9855643c7e19d09f160f14cc0975a5d810fab4ba
parent394382b931789a0861a5a7daf153faa5a4498af2
Fix onHover event not being triggered (#4297)

Fix onHover event not being triggered

The core controller was looking at the wrong object (options.hover) to
find the function to be called on hover. The function is provided on the
top level options object (options.onHover).

By using the helper function, there's no need to verify if the callback
is defined, as the helper already does that.

Fixes #4296
src/core/core.controller.js