@@ -988,18 +988,17 @@ proto.updateRadialDrag = function(fullLayout, polarLayout) {
988
988
_this . xaxis . setScale ( ) ;
989
989
_this . yaxis . setScale ( ) ;
990
990
991
- for ( var k in _this . traceHash ) {
992
- var moduleCalcData = _this . traceHash [ k ] ;
991
+ if ( _this . _scene ) _this . _scene . clear ( ) ;
992
+
993
+ for ( var traceType in _this . traceHash ) {
994
+ var moduleCalcData = _this . traceHash [ traceType ] ;
993
995
var moduleCalcDataVisible = Lib . filterVisible ( moduleCalcData ) ;
994
996
var _module = moduleCalcData [ 0 ] [ 0 ] . trace . _module ;
995
997
var polarLayoutNow = gd . _fullLayout [ _this . id ] ;
996
- var isGL = Registry . traceIs ( k , 'gl' ) ;
997
-
998
- if ( isGL && _this . _scene ) _this . _scene . clear ( ) ;
999
998
1000
999
_module . plot ( gd , _this , moduleCalcDataVisible , polarLayoutNow ) ;
1001
1000
1002
- if ( ! isGL ) {
1001
+ if ( ! Registry . traceIs ( traceType , 'gl' ) ) {
1003
1002
for ( var i = 0 ; i < moduleCalcDataVisible . length ; i ++ ) {
1004
1003
_module . style ( gd , moduleCalcDataVisible [ i ] ) ;
1005
1004
}
@@ -1134,12 +1133,13 @@ proto.updateAngularDrag = function(fullLayout, polarLayout) {
1134
1133
scatterTraces . call ( Drawing . hideOutsideRangePoints , _this ) ;
1135
1134
}
1136
1135
1137
- for ( var k in _this . traceHash ) {
1138
- if ( Registry . traceIs ( k , 'gl' ) ) {
1139
- var moduleCalcData = _this . traceHash [ k ] ;
1136
+ if ( _this . _scene ) _this . _scene . clear ( ) ;
1137
+
1138
+ for ( var traceType in _this . traceHash ) {
1139
+ if ( Registry . traceIs ( traceType , 'gl' ) ) {
1140
+ var moduleCalcData = _this . traceHash [ traceType ] ;
1140
1141
var moduleCalcDataVisible = Lib . filterVisible ( moduleCalcData ) ;
1141
1142
var _module = moduleCalcData [ 0 ] [ 0 ] . trace . _module ;
1142
- if ( _this . _scene ) _this . _scene . clear ( ) ;
1143
1143
_module . plot ( gd , _this , moduleCalcDataVisible , polarLayoutNow ) ;
1144
1144
}
1145
1145
}
0 commit comments