Skip to content

Commit 01967d8

Browse files
committed
merge followup: use helpers.getGraphDiv in animate/frame methods
1 parent c3327aa commit 01967d8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/plot_api/plot_api.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2130,7 +2130,7 @@ Plotly.update = function update(gd, traceUpdate, layoutUpdate, indices) {
21302130
* configuration for the animation
21312131
*/
21322132
Plotly.animate = function(gd, frameOrGroupNameOrFrameList, animationOpts) {
2133-
gd = getGraphDiv(gd);
2133+
gd = helpers.getGraphDiv(gd);
21342134

21352135
if(!Lib.isPlotDiv(gd)) {
21362136
throw new Error('This element is not a Plotly plot: ' + gd);
@@ -2413,7 +2413,7 @@ Plotly.animate = function(gd, frameOrGroupNameOrFrameList, animationOpts) {
24132413
* will be overwritten.
24142414
*/
24152415
Plotly.addFrames = function(gd, frameList, indices) {
2416-
gd = getGraphDiv(gd);
2416+
gd = helpers.getGraphDiv(gd);
24172417

24182418
if(!Lib.isPlotDiv(gd)) {
24192419
throw new Error('This element is not a Plotly plot: ' + gd);
@@ -2500,7 +2500,7 @@ Plotly.addFrames = function(gd, frameList, indices) {
25002500
* list of integer indices of frames to be deleted
25012501
*/
25022502
Plotly.deleteFrames = function(gd, frameList) {
2503-
gd = getGraphDiv(gd);
2503+
gd = helpers.getGraphDiv(gd);
25042504

25052505
if(!Lib.isPlotDiv(gd)) {
25062506
throw new Error('This element is not a Plotly plot: ' + gd);

0 commit comments

Comments
 (0)