Skip to content

Commit 51b54a9

Browse files
committed
gg2list() should return a built object
1 parent 5e0df70 commit 51b54a9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

R/ggplotly.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -641,7 +641,7 @@ gg2list <- function(p, width = NULL, height = NULL, tooltip = "all", source = "A
641641
l$width <- width
642642
l$height <- height
643643
l$source <- source
644-
structure(l, class = "plotly")
644+
structure(l, class = "plotly_built")
645645
}
646646

647647

R/utils.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ last_plot <- function(data = NULL) {
7373
if (inherits(p, "try-error")) stop("The last plot doesn't exist")
7474
structure(
7575
p,
76-
class = unique(c("plotly", class(p)))
76+
class = unique(c("plotly_hash", class(p)))
7777
)
7878
}
7979

0 commit comments

Comments
 (0)