Skip to content

Commit 999a003

Browse files
committed
fixed as per comments in #298
1 parent 4b464b1 commit 999a003

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

R/plugin-easybutton.R

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ easyButtonState <- function(
4343
#' @param states the states
4444
#' @export
4545
easyButton <- function(
46-
icon = htmltools::span(class='easy-button','!'),
47-
title = "Easy Button",
48-
onClick = JS("function(btn, map){alert('That was easy!');}"),
46+
icon,
47+
title = NULL,
48+
onClick,
4949
position = "topleft",
5050
id = NULL,
5151
states = NULL
@@ -87,7 +87,7 @@ easyButton <- function(
8787
#' @export
8888
addEasyButton <- function(
8989
map,
90-
button = easyButton()
90+
button
9191
) {
9292

9393
if(!inherits(button,'leaflet_easybutton')) {

man/easyButton.Rd

Lines changed: 3 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)