Skip to content

Commit 2934f11

Browse files
committed
rename 'graphInfo' --> 'gd' for consistency in modebar buttons defs
1 parent 7cd5b30 commit 2934f11

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/components/modebar/buttons.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ var modebarButtons = module.exports = {};
3636
* attribute associated with button,
3737
* use this with 'val' to keep track of the state
3838
* @param {*} [val]
39-
* initial 'attr' value, can be a function of graphInfo
39+
* initial 'attr' value, can be a function of gd
4040
* @param {boolean} [toggle]
4141
* is the button a toggle button?
4242
*/
@@ -170,8 +170,8 @@ modebarButtons.hoverCompareCartesian = {
170170
name: 'hoverCompareCartesian',
171171
title: 'Compare data on hover',
172172
attr: 'hovermode',
173-
val: function(graphInfo) {
174-
return graphInfo._fullLayout._isHoriz ? 'y' : 'x';
173+
val: function(gd) {
174+
return gd._fullLayout._isHoriz ? 'y' : 'x';
175175
},
176176
icon: Icons.tooltip_compare,
177177
gravity: 'ne',

0 commit comments

Comments
 (0)