Fix use of reserved keyword as a parameter name

This commit is contained in:
Evert Timberg 2017-02-21 20:34:50 -05:00
parent 1e14124d55
commit 2ddd5ff88c

View File

@ -92,11 +92,11 @@ module.exports = function(Chart) {
return canvas;
}
function createEvent(type, chart, x, y, native) {
function createEvent(type, chart, x, y, nativeEvent) {
return {
type: type,
chart: chart,
native: native || null,
native: nativeEvent || null,
x: x !== undefined? x : null,
y: y !== undefined? y : null,
};