File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -485,9 +485,9 @@ plots.supplyDefaults = function(gd) {
485
485
Lib . fillUnique ( modules , _module ) ;
486
486
Lib . fillUnique ( basePlotModules , fullTrace . _module . basePlotModule ) ;
487
487
}
488
- // attach helper method
489
- newFullLayout . _has = hasPlotType . bind ( newFullLayout ) ;
490
488
489
+ // attach helper method to check whether a plot type is present on graph
490
+ newFullLayout . _has = plots . _hasPlotType . bind ( newFullLayout ) ;
491
491
// temporary block (before replace all _has??? with _hasPlotType() ?
492
492
newFullLayout . _hasCartesian = newFullLayout . _has ( 'cartesian' ) ;
493
493
newFullLayout . _hasGeo = newFullLayout . _has ( 'geo' ) ;
@@ -539,7 +539,7 @@ plots.supplyDefaults = function(gd) {
539
539
540
540
// helper function to be bound to fullLayout to check
541
541
// whether a certain plot type is present on plot
542
- function hasPlotType ( category ) {
542
+ plots . _hasPlotType = function ( category ) {
543
543
var basePlotModules = this . _basePlotModules || [ ] ;
544
544
545
545
for ( var i = 0 ; i < basePlotModules . length ; i ++ ) {
@@ -549,6 +549,7 @@ function hasPlotType(category) {
549
549
}
550
550
551
551
return false ;
552
+ } ;
552
553
553
554
plots . cleanPlot = function ( newFullData , newFullLayout , oldFullData , oldFullLayout ) {
554
555
var i , j ;
You can’t perform that action at this time.
0 commit comments