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) {
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 ;
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments