Skip to content

Commit 0da832e

Browse files
committed
Move constant to top of file; remove unused require
1 parent 1b65938 commit 0da832e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/plot_api/helpers.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ var cleanId = AxisIds.cleanId;
1313
var getFromTrace = AxisIds.getFromTrace;
1414
var traceIs = Registry.traceIs;
1515

16+
const AX_LETTERS = ['x', 'y', 'z'];
17+
1618
// clear the promise queue if one of them got rejected
1719
exports.clearPromiseQueue = function (gd) {
1820
if (Array.isArray(gd._promises) && gd._promises.length > 0) {
@@ -475,7 +477,6 @@ exports.hasParent = function (aobj, attr) {
475477
return false;
476478
};
477479

478-
const AX_LETTERS = ['x', 'y', 'z'];
479480
/**
480481
* Empty out types for all axes containing these traces so we auto-set them again
481482
*

0 commit comments

Comments
 (0)