Skip to content

Commit 5f7293d

Browse files
committed
fix linting errors
1 parent ab2b9e8 commit 5f7293d

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

src/plot_api/plot_api.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -671,11 +671,13 @@ function cleanData(data, existingData) {
671671

672672
for(var tracei = 0; tracei < data.length; tracei++) {
673673
var trace = data[tracei];
674+
var i;
674675

675676
// assign uids to each trace and detect collisions.
676677
if(!('uid' in trace) || suids.indexOf(trace.uid) !== -1) {
677-
var newUid, i;
678-
for(i=0; i<100; i++) {
678+
var newUid;
679+
680+
for(i = 0; i < 100; i++) {
679681
newUid = Lib.randstr(uids);
680682
if(suids.indexOf(newUid)===-1) break;
681683
}
@@ -767,7 +769,7 @@ function cleanData(data, existingData) {
767769
if(trace.type === 'surface' && Lib.isPlainObject(trace.contours)) {
768770
var dims = ['x', 'y', 'z'];
769771

770-
for(var i = 0; i < dims.length; i++) {
772+
for(i = 0; i < dims.length; i++) {
771773
var opts = trace.contours[dims[i]];
772774

773775
if(!Lib.isPlainObject(opts)) continue;

src/traces/surface/attributes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ module.exports = {
143143
'Determines whether or not a surface is drawn.',
144144
'For example, set `hidesurface` to *false*',
145145
'`contours.x.show` to *true* and',
146-
'`contours.y.show` to *true* to draw a wire frame plot.',
146+
'`contours.y.show` to *true* to draw a wire frame plot.'
147147
].join(' ')
148148
},
149149

0 commit comments

Comments
 (0)