Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ec941a4

Browse files
committed
bind _has to oldFullLayout too (so that _has() calls work)
1 parent 0dc5524 commit ec941a4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/plots/plots.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -483,6 +483,7 @@ plots.supplyDefaults = function(gd) {
483483
}
484484

485485
// attach helper method
486+
oldFullLayout._has = hasPlotType.bind(oldFullLayout);
486487
newFullLayout._has = hasPlotType.bind(newFullLayout);
487488

488489
// temporary block (before replace all _has??? with _hasPlotType() ?

0 commit comments

Comments
 (0)