]> git.ipfire.org Git - thirdparty/Chart.js.git/commit
Refactoring to put browser specific code in a new class (#3718)
authorEvert Timberg <evert.timberg+github@gmail.com>
Wed, 21 Dec 2016 15:22:05 +0000 (10:22 -0500)
committerGitHub <noreply@github.com>
Wed, 21 Dec 2016 15:22:05 +0000 (10:22 -0500)
commitecc35c527b8d91c2bdbc2cdc97ef667adfe7e3a3
treeb56115bdb17e6ef0f40967e230bc1975ffacc1c6
parent5387c48bd83db8f33e7a6b147b260dc43714db6c
Refactoring to put browser specific code in a new class (#3718)

Refactoring to put browser specific code in a new class, BrowserPlatform.
BrowserPlatform implements IPlatform. Chart.Platform is the constructor for the platform object that is attached to the chart instance.

Plugins are notified about the event using the `onEvent` call. The legend plugin was converted to use onEvent instead of the older private `handleEvent` method.
Wrote test to check that plugins are notified about events
docs/09-Advanced.md
src/chart.js
src/core/core.controller.js
src/core/core.interaction.js
src/core/core.legend.js
src/core/core.tooltip.js
src/platforms/platform.dom.js [new file with mode: 0644]
test/core.controller.tests.js
test/platform.dom.tests.js [new file with mode: 0644]