File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -536,14 +536,14 @@ plots.supplyDefaults = function(gd) {
536
536
} ;
537
537
538
538
// helper function to be bound to fullLayout to check
539
- // whether a certain plot type or layout categories is present on plot
539
+ // whether a certain plot type is present on plot
540
540
function hasPlotType ( category ) {
541
- var modules = this . _modules || [ ] ;
541
+ var basePlotModules = this . _basePlotModules || [ ] ;
542
542
543
- for ( var i = 0 ; i < modules . length ; i ++ ) {
544
- var _module = modules [ i ] ;
543
+ for ( var i = 0 ; i < basePlotModules . length ; i ++ ) {
544
+ var _module = basePlotModules [ i ] ;
545
545
546
- if ( _module . basePlotModule . name === category ) return true ;
546
+ if ( _module . name === category ) return true ;
547
547
}
548
548
549
549
return false ;
You can’t perform that action at this time.
0 commit comments