File tree 2 files changed +1
-12
lines changed
2 files changed +1
-12
lines changed Original file line number Diff line number Diff line change @@ -198,13 +198,7 @@ drawing.fillGroupStyle = function(s) {
198
198
s . style ( 'stroke-width' , 0 )
199
199
. each ( function ( d ) {
200
200
var shape = d3 . select ( this ) ;
201
- try {
202
- shape . call ( Color . fill , d [ 0 ] . trace . fillcolor ) ;
203
- }
204
- catch ( e ) {
205
- Lib . error ( e , s ) ;
206
- shape . remove ( ) ;
207
- }
201
+ shape . call ( Color . fill , d [ 0 ] . trace . fillcolor ) ;
208
202
} ) ;
209
203
} ;
210
204
Original file line number Diff line number Diff line change @@ -658,10 +658,6 @@ describe('end-to-end scatter tests', function() {
658
658
// from any case to any other case.
659
659
var indices = transitions ( cases . length ) ;
660
660
661
- // Drawing.fillGroupStyle logs an error in a try-catch when
662
- // things go wrong
663
- spyOn ( Lib , 'error' ) ;
664
-
665
661
var p = Plotly . plot ( gd , [
666
662
{ y : [ 1 , 2 ] , text : 'a' } ,
667
663
{ y : [ 2 , 3 ] , text : 'b' } ,
@@ -711,7 +707,6 @@ describe('end-to-end scatter tests', function() {
711
707
var msg = i ? ( 'from ' + cases [ indices [ i - 1 ] ] . name + ' to ' ) : 'from default to ' ;
712
708
msg += name ;
713
709
assertMultiNodeOrder ( selectorArray , msg ) ;
714
- expect ( Lib . error ) . not . toHaveBeenCalled ( ) ;
715
710
} ; }
716
711
717
712
for ( i = 0 ; i < indices . length ; i ++ ) {
You can’t perform that action at this time.
0 commit comments