File tree 2 files changed +2
-11
lines changed
2 files changed +2
-11
lines changed Original file line number Diff line number Diff line change @@ -722,14 +722,8 @@ lib.isIOS = function() {
722
722
return IS_IOS_REGEX . test ( window . navigator . userAgent ) ;
723
723
} ;
724
724
725
- // Do we need this process now that IE9 and IE10 are not supported?
726
-
727
- /**
728
- * Duck typing to recognize a d3 selection, mostly for IE9's benefit
729
- * because it doesn't handle instanceof like modern browsers
730
- */
731
725
lib . isD3Selection = function ( obj ) {
732
- return obj && ( typeof obj . classed === 'function' ) ;
726
+ return obj instanceof d3 . selection ;
733
727
} ;
734
728
735
729
/**
Original file line number Diff line number Diff line change @@ -1643,10 +1643,7 @@ describe('Test lib.js:', function() {
1643
1643
// this is what got us into trouble actually - d3 selections can
1644
1644
// contain non-nodes - say for example d3 selections! then they
1645
1645
// don't work correctly. But it makes a convenient test!
1646
- d3 . select ( 1 ) ,
1647
- // just showing what we actually do in this function: duck type
1648
- // using the `classed` method.
1649
- { classed : function ( v ) { return ! ! v ; } }
1646
+ d3 . select ( 1 )
1650
1647
] ;
1651
1648
1652
1649
yesSelections . forEach ( function ( v ) {
You can’t perform that action at this time.
0 commit comments