Skip to content

Commit

Permalink
remove isFalse to resolve #100 (comment)
Browse files Browse the repository at this point in the history
  • Loading branch information
timelyportfolio committed Jul 17, 2019
1 parent 231d71c commit 6b206f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/addToolbar.R
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
##' \code{leafpm::addPmToolbar}.
processOpts <- function(fun, args) {
## Account for special meaning of `FALSE` as arg in leaflet.extras
if(isFALSE(args)) {
if(!is.null(x) && !isTRUE(x)) {
return(FALSE)
} else {
return(do.call(fun, args))
Expand Down

0 comments on commit 6b206f8

Please sign in to comment.