mirror of
https://github.com/rstudio/shiny.git
synced 2026-02-01 18:24:54 -05:00
well, we still have to use do.call($) on .self; closes #274
Winston reported the issue at https://stat.ethz.ch/pipermail/r-devel/2013-October/067744.html
partially reverted 86d61e0b44
This commit is contained in:
@@ -223,7 +223,9 @@ ShinySession <- setRefClass(
|
||||
},
|
||||
dispatch = function(msg) {
|
||||
method <- paste('@', msg$method, sep='')
|
||||
func <- try(.self[[method]], silent=TRUE)
|
||||
# we must use $ instead of [[ here at the moment; see
|
||||
# https://github.com/rstudio/shiny/issues/274
|
||||
func <- try(do.call(`$`, list(.self, method)), silent=TRUE)
|
||||
if (inherits(func, 'try-error')) {
|
||||
.sendErrorResponse(msg, paste('Unknown method', msg$method))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user