Skip to content

Commit

Permalink
lint; yarn build
Browse files Browse the repository at this point in the history
  • Loading branch information
cpsievert committed Mar 29, 2023
1 parent 4702ff4 commit d93136c
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 16 deletions.
11 changes: 7 additions & 4 deletions inst/www/shared/shiny.js
Original file line number Diff line number Diff line change
Expand Up @@ -15713,11 +15713,14 @@
var initialValues = mapValues(_bindAll(shinyBindCtx(), document.documentElement), function(x) {
return x.value;
});
var maybeBindOnRegister = debounce(0, function() {
if (!renderHtml2.isExecuting()) {
windowShiny3.bindAll(document.documentElement);
}
var debouncedBindAll = debounce(0, function() {
var _windowShiny$bindAll;
return (_windowShiny$bindAll = windowShiny3.bindAll) === null || _windowShiny$bindAll === void 0 ? void 0 : _windowShiny$bindAll.call(windowShiny3, document.documentElement);
});
var maybeBindOnRegister = function maybeBindOnRegister2() {
if (!renderHtml2.isExecuting())
debouncedBindAll();
};
inputBindings.onRegister(maybeBindOnRegister, false);
outputBindings.onRegister(maybeBindOnRegister, false);
(0, import_jquery39.default)(".shiny-image-output, .shiny-plot-output, .shiny-report-size").each(function() {
Expand Down
6 changes: 3 additions & 3 deletions inst/www/shared/shiny.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion inst/www/shared/shiny.min.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions inst/www/shared/shiny.min.js.map

Large diffs are not rendered by default.

12 changes: 7 additions & 5 deletions srcts/src/shiny/init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,12 +150,14 @@ function initShiny(windowShiny: Shiny): void {
(x) => x.value
);

// If and when input/output registration happens in the future,
// check to see if renderHtml()/renderContent() is currently executing.
// If it isn't, we likely need to bind again to the entire document,
// since Shiny has bound to the DOM before having access to the full
// If and when input/output registration happens in the future,
// check to see if renderHtml()/renderContent() is currently executing.
// If it isn't, we likely need to bind again to the entire document,
// since Shiny has bound to the DOM before having access to the full
// set of bindings. (#3635)
const debouncedBindAll = debounce(0, () => windowShiny.bindAll!(document.documentElement))
const debouncedBindAll = debounce(0, () =>
windowShiny.bindAll?.(document.documentElement)
);

const maybeBindOnRegister = () => {
if (!renderHtml.isExecuting()) debouncedBindAll();
Expand Down

0 comments on commit d93136c

Please sign in to comment.