Skip to content

Commit

Permalink
NULL method
Browse files Browse the repository at this point in the history
  • Loading branch information
pvictor committed Jun 5, 2018
1 parent 4c274c9 commit 1c49a7c
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions R/d3_map_proxy.R
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,12 @@ d3_map_proxy <- function(shinyId, data = NULL, session = shiny::getDefaultReacti
shinyId <- session$ns(shinyId)
}

if (!is.null(data)) {
data <- extract_data(data)
}

structure(
list(
session = session,
id = shinyId,
x = structure(
list(data = data)
list(data = extract_data(data))
)
),
class = "d3_map_proxy"
Expand Down Expand Up @@ -74,7 +70,9 @@ extract_data.sf <- function(x) {
x[[colsf]] <- NULL
return(x)
}

extract_data.NULL <- function(x) {
NULL
}


#' Update a continuous scale in Shiny
Expand Down

0 comments on commit 1c49a7c

Please sign in to comment.