We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f7f8fb4 commit 8e4ca74Copy full SHA for 8e4ca74
dash/_callback.py
@@ -502,9 +502,11 @@ def add_context(*args, **kwargs):
502
503
504
_inline_clientside_template = """
505
-var clientside = window.dash_clientside = window.dash_clientside || {{}};
506
-var ns = clientside["{namespace}"] = clientside["{namespace}"] || {{}};
507
-ns["{function_name}"] = {clientside_function};
+(function() {{
+ var clientside = window.dash_clientside = window.dash_clientside || {{}};
+ var ns = clientside["{namespace}"] = clientside["{namespace}"] || {{}};
508
+ ns["{function_name}"] = {clientside_function};
509
+}})();
510
"""
511
512
0 commit comments