File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -400,15 +400,19 @@ function setPlotContext(gd, config) {
400
400
if ( ! gd . _context ) gd . _context = Lib . extendFlat ( { } , Plotly . defaultConfig ) ;
401
401
var context = gd . _context ;
402
402
403
+ var i , keys , key ;
404
+
403
405
if ( config ) {
404
- Object . keys ( config ) . forEach ( function ( key ) {
406
+ keys = Object . keys ( config ) ;
407
+ for ( i = 0 ; i < keys . length ; i ++ ) {
408
+ key = keys [ i ] ;
405
409
if ( key in context ) {
406
410
if ( key === 'setBackground' && config [ key ] === 'opaque' ) {
407
411
context [ key ] = opaqueSetBackground ;
408
412
}
409
413
else context [ key ] = config [ key ] ;
410
414
}
411
- } ) ;
415
+ }
412
416
413
417
// map plot3dPixelRatio to plotGlPixelRatio for backward compatibility
414
418
if ( config . plot3dPixelRatio && ! context . plotGlPixelRatio ) {
You can’t perform that action at this time.
0 commit comments