R/invoke-method.R

Defines functions invoke_method

invoke_method <- function(widget, method_name, ...) {
  pos <- length(widget$x$calls) + 1
  widget$x$calls[[pos]] <- list(
    methodName = method_name,
    args = list(...) %>%
      purrr::compact()
  )
  widget
}
crazycapivara/mapboxer documentation built on Nov. 13, 2021, 3:22 a.m.