Skip to content

Commit

Permalink
Avoid ES6 syntax (#350)
Browse files Browse the repository at this point in the history
Allows the plugin to work in IE11 without adding babel, etc.
  • Loading branch information
benmccann committed May 7, 2020
1 parent ac42904 commit 93edcd2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ function directionEnabled(mode, dir, chart) {
} else if (typeof mode === 'string') {
return mode.indexOf(dir) !== -1;
} else if (typeof mode === 'function') {
return mode({chart}).indexOf(dir) !== -1;
return mode({chart: chart}).indexOf(dir) !== -1;
}

return false;
Expand Down

0 comments on commit 93edcd2

Please sign in to comment.