File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -131,12 +131,12 @@ var vizClipboard1=null;
131
131
$ ( window ) . on ( 'scroll' , function ( ) {
132
132
$ ( 'div.visualizer-front:not(.viz-facade-loaded):not(.visualizer-lazy):not(.visualizer-cw-error):empty' ) . each ( function ( index , element ) {
133
133
// Do not render charts that are intentionally hidden.
134
- var style = window . getComputedStyle ( element ) ;
134
+ const style = window . getComputedStyle ( element ) ;
135
135
if ( style . display === 'none' || style . visibility === 'hidden' ) {
136
136
return ;
137
137
}
138
138
139
- var id = $ ( element ) . addClass ( 'viz-facade-loaded' ) . attr ( 'id' ) ;
139
+ const id = $ ( element ) . addClass ( 'viz-facade-loaded' ) . attr ( 'id' ) ;
140
140
setTimeout ( function ( ) {
141
141
// Add a short delay between each chart to avoid overloading the browser event loop.
142
142
showChart ( id ) ;
@@ -146,12 +146,12 @@ var vizClipboard1=null;
146
146
147
147
$ ( 'div.visualizer-front-container:not(.visualizer-lazy-render)' ) . each ( function ( index , element ) {
148
148
// Do not render charts that are intentionally hidden.
149
- var style = window . getComputedStyle ( $ ( element ) . find ( '.visualizer-front' ) [ 0 ] ) ;
149
+ const style = window . getComputedStyle ( $ ( element ) . find ( '.visualizer-front' ) [ 0 ] ) ;
150
150
if ( style . display === 'none' || style . visibility === 'hidden' ) {
151
151
return ;
152
152
}
153
153
154
- var id = $ ( element ) . find ( '.visualizer-front' ) . addClass ( 'viz-facade-loaded' ) . attr ( 'id' ) ;
154
+ const id = $ ( element ) . find ( '.visualizer-front' ) . addClass ( 'viz-facade-loaded' ) . attr ( 'id' ) ;
155
155
setTimeout ( function ( ) {
156
156
// Add a short delay between each chart to avoid overloading the browser event loop.
157
157
showChart ( id ) ;
You can’t perform that action at this time.
0 commit comments