Skip to content

Commit 93edcd2

Browse files
authored
Avoid ES6 syntax (#350)
Allows the plugin to work in IE11 without adding babel, etc.
1 parent ac42904 commit 93edcd2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/plugin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ function directionEnabled(mode, dir, chart) {
8484
} else if (typeof mode === 'string') {
8585
return mode.indexOf(dir) !== -1;
8686
} else if (typeof mode === 'function') {
87-
return mode({chart}).indexOf(dir) !== -1;
87+
return mode({chart: chart}).indexOf(dir) !== -1;
8888
}
8989

9090
return false;

0 commit comments

Comments
 (0)