Skip to content
Prev Previous commit
Next Next commit
Apply suggestions from code review
Co-authored-by: Cameron DeCoster <cameron.decoster@gmail.com>
  • Loading branch information
emilykl and camdecoster committed Jan 26, 2026
commit 79bf8620b8ae7f92d8aaeb98e90e6382abde4ea3
2 changes: 1 addition & 1 deletion src/plots/cartesian/dragbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -733,7 +733,7 @@ function makeDragBox(gd, plotinfo, x, y, w, h, ns, ew) {
var axListI = axList[i];
var axListIType = axListI[axisType];
var axId = axListIType._id;
if(!axListI.fixedrange && axListIType.tickmode === 'sync' && activeAxIds.indexOf(axId) === -1) {
if(!axListI.fixedrange && axListIType.tickmode === 'sync' && !activeAxIds.includes(axId)) {
activeAxIds.push(axId);
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/plots/cartesian/layout_attributes.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ var tickmode = extendFlat({}, minorTickmode, {
minorTickmode.description,
'If *sync*, the number of ticks will sync with the overlayed axis',
'set by `overlaying` property. When no other tick info is provided,',
'overlyaing (non-categorical) axes default to *sync*, while other axes default to *auto*.',
'overlaying (non-categorical) axes default to *sync*, while other axes default to *auto*.',
].join(' ')
});

Expand Down
3 changes: 1 addition & 2 deletions src/plots/cartesian/tick_value_defaults.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ var isArrayOrTypedArray = require('../../lib').isArrayOrTypedArray;
var isTypedArraySpec = require('../../lib/array').isTypedArraySpec;
var decodeTypedArraySpec = require('../../lib/array').decodeTypedArraySpec;

module.exports = function handleTickValueDefaults(containerIn, containerOut, coerce, axType, opts) {
if (!opts) opts = {};
module.exports = function handleTickValueDefaults(containerIn, containerOut, coerce, axType, opts = {}) {
var isMinor = opts.isMinor;
var cIn = isMinor ? containerIn.minor || {} : containerIn;
var cOut = isMinor ? containerOut.minor : containerOut;
Expand Down
Loading