File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -671,11 +671,13 @@ function cleanData(data, existingData) {
671
671
672
672
for ( var tracei = 0 ; tracei < data . length ; tracei ++ ) {
673
673
var trace = data [ tracei ] ;
674
+ var i ;
674
675
675
676
// assign uids to each trace and detect collisions.
676
677
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 ++ ) {
679
681
newUid = Lib . randstr ( uids ) ;
680
682
if ( suids . indexOf ( newUid ) === - 1 ) break ;
681
683
}
@@ -767,7 +769,7 @@ function cleanData(data, existingData) {
767
769
if ( trace . type === 'surface' && Lib . isPlainObject ( trace . contours ) ) {
768
770
var dims = [ 'x' , 'y' , 'z' ] ;
769
771
770
- for ( var i = 0 ; i < dims . length ; i ++ ) {
772
+ for ( i = 0 ; i < dims . length ; i ++ ) {
771
773
var opts = trace . contours [ dims [ i ] ] ;
772
774
773
775
if ( ! Lib . isPlainObject ( opts ) ) continue ;
Original file line number Diff line number Diff line change @@ -143,7 +143,7 @@ module.exports = {
143
143
'Determines whether or not a surface is drawn.' ,
144
144
'For example, set `hidesurface` to *false*' ,
145
145
'`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.'
147
147
] . join ( ' ' )
148
148
} ,
149
149
You can’t perform that action at this time.
0 commit comments