Skip to content

Commit a597962

Browse files
authored
stylistic change
1 parent 5742aae commit a597962

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

R/shiny.R

+4-3
Original file line numberDiff line numberDiff line change
@@ -153,10 +153,11 @@ event_data <- function(
153153
parseJSONVal(session$rootScope()$input[[eventID]])
154154
}
155155

156-
priority <- match.arg(priority)
157156
# events that don't emit any data should _always_ be treated with event priority
158-
if (event %in% c("plotly_doubleclick", "plotly_deselect", "plotly_afterplot")) {
159-
priority <- "event"
157+
priority <- if (event %in% c("plotly_doubleclick", "plotly_deselect", "plotly_afterplot")) {
158+
"event"
159+
} else {
160+
match.arg(priority)
160161
}
161162

162163
if (priority == "event") {

0 commit comments

Comments
 (0)