Skip to content

Commit e0d04eb

Browse files
committed
Export jQuery for ltk, not the inputs example
1 parent 8edbeb3 commit e0d04eb

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

examples/inputs.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
search = window.URLSearchParams.new(window.location.search)
88
runtime = search.get("runtime") or "mpy"
9-
jQuery = window.jQuery
109
logger = logging.getLogger()
1110

1211

ltk/jquery.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"parse_int", "parse_float", "local_storage", "find", "create", "find_list", "to_js",
1919
"to_py", "schedule", "repeat", "cancel", "get", "delete", "get_time", "post", "async_proxy",
2020
"observe", "proxy", "get_url_parameter", "set_url_parameter", "push_state", "inject_script",
21-
"inject_css", "callback",
21+
"inject_css", "callback", "jQuery",
2222
]
2323

2424

@@ -41,6 +41,7 @@ class MonkeyPatchedTimeModuleForMicroPython:
4141
parse_float = window.parseFloat
4242
local_storage = window.localStorage
4343
timers = {}
44+
jQuery = window.jQuery
4445

4546

4647
def find(selector):

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ build-backend = "setuptools.build_meta"
66

77
[project]
88
name = "pyscript-ltk"
9-
version = "0.2.11"
9+
version = "0.2.12"
1010
description = "A little toolkit for writing UIs in PyScript"
1111
readme = "README.md"
1212
authors = [{ name = "Chris Laffra", email = "[email protected]" }]

0 commit comments

Comments
 (0)