Skip to content

Commit

Permalink
Partially revert 7c5594a
Browse files Browse the repository at this point in the history
Restores eager recursion into `options` objects
  • Loading branch information
gadenbuie committed Nov 25, 2023
1 parent b0f3d56 commit de342f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ JSEvals <- function(list) {
#' @noRd
#' @keywords internal
shouldEval <- function(options) {
if (inherits(options, c("list", "data.frame"))) {
if (is.list(options)) {
if ((n <- length(options)) == 0) return(FALSE)
# use numeric indices as names (remember JS indexes from 0, hence -1 here)
if (is.null(names(options)))
Expand Down

0 comments on commit de342f4

Please sign in to comment.