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) {
400400 if ( ! gd . _context ) gd . _context = Lib . extendFlat ( { } , Plotly . defaultConfig ) ;
401401 var context = gd . _context ;
402402
403+ var i , keys , key ;
404+
403405 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 ] ;
405409 if ( key in context ) {
406410 if ( key === 'setBackground' && config [ key ] === 'opaque' ) {
407411 context [ key ] = opaqueSetBackground ;
408412 }
409413 else context [ key ] = config [ key ] ;
410414 }
411- } ) ;
415+ }
412416
413417 // map plot3dPixelRatio to plotGlPixelRatio for backward compatibility
414418 if ( config . plot3dPixelRatio && ! context . plotGlPixelRatio ) {
You can’t perform that action at this time.
0 commit comments