Trigger the recalculating event on null when the binding does not exist

This commit is contained in:
Yihui Xie
2015-09-02 12:29:01 -05:00
parent 838e132515
commit 1ee2a25eca

View File

@@ -510,7 +510,7 @@ var ShinyApp = function() {
addCustomMessageHandler('recalculating', function(message) {
if (message.hasOwnProperty('name') && message.hasOwnProperty('status')) {
var binding = this.$bindings[name];
$(binding ? binding.el : document).trigger({
$(binding ? binding.el : null).trigger({
type: 'shiny:' + message.status
});
}