Skip to content

Commit 0a41ffa

Browse files
committed
refactor - move sets to the end
1 parent b60d347 commit 0a41ffa

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/traces/scattermapbox/plot.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,6 @@ proto.update = function update(calcTrace) {
102102
opts = optsAll[k];
103103
this.addLayer(k, opts, below);
104104
}
105-
this.below = below;
106105
} else if(hasCluster && !hadCluster) {
107106
for(i = ORDER.nonCluster.length - 1; i >= 0; i--) {
108107
k = ORDER.nonCluster[i];
@@ -115,7 +114,6 @@ proto.update = function update(calcTrace) {
115114
opts = optsAll[k];
116115
this.addLayer(k, opts, below);
117116
}
118-
this.clusterEnabled = hasCluster;
119117
} else if(!hasCluster && hadCluster) {
120118
for(i = 0; i < ORDER.cluster.length; i++) {
121119
k = ORDER.cluster[i];
@@ -128,7 +126,6 @@ proto.update = function update(calcTrace) {
128126
this.addSource(k, opts, trace.cluster);
129127
this.addLayer(k, opts, below);
130128
}
131-
this.clusterEnabled = hasCluster;
132129
}
133130

134131
order = hasCluster ? ORDER.cluster : ORDER.nonCluster;
@@ -144,6 +141,9 @@ proto.update = function update(calcTrace) {
144141
}
145142
}
146143

144+
this.clusterEnabled = hasCluster;
145+
this.below = below;
146+
147147
// link ref for quick update during selections
148148
calcTrace[0].trace._glTrace = this;
149149
};

0 commit comments

Comments
 (0)