Skip to content

Commit 95525fa

Browse files
committed
lint; yarn build
1 parent 4702ff4 commit 95525fa

File tree

5 files changed

+20
-16
lines changed

5 files changed

+20
-16
lines changed

inst/www/shared/shiny.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15713,11 +15713,13 @@
1571315713
var initialValues = mapValues(_bindAll(shinyBindCtx(), document.documentElement), function(x) {
1571415714
return x.value;
1571515715
});
15716-
var maybeBindOnRegister = debounce(0, function() {
15717-
if (!renderHtml2.isExecuting()) {
15718-
windowShiny3.bindAll(document.documentElement);
15719-
}
15716+
var debouncedBindAll = debounce(0, function() {
15717+
return windowShiny3.bindAll(document.documentElement);
1572015718
});
15719+
var maybeBindOnRegister = function maybeBindOnRegister2() {
15720+
if (!renderHtml2.isExecuting())
15721+
debouncedBindAll();
15722+
};
1572115723
inputBindings.onRegister(maybeBindOnRegister, false);
1572215724
outputBindings.onRegister(maybeBindOnRegister, false);
1572315725
(0, import_jquery39.default)(".shiny-image-output, .shiny-plot-output, .shiny-report-size").each(function() {

inst/www/shared/shiny.js.map

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

inst/www/shared/shiny.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

inst/www/shared/shiny.min.js.map

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

srcts/src/shiny/init.ts

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -150,12 +150,14 @@ function initShiny(windowShiny: Shiny): void {
150150
(x) => x.value
151151
);
152152

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

160162
const maybeBindOnRegister = () => {
161163
if (!renderHtml.isExecuting()) debouncedBindAll();

0 commit comments

Comments
 (0)