Skip to content

Commit

Permalink
Export jQuery for ltk, not the inputs example
Browse files Browse the repository at this point in the history
  • Loading branch information
laffra committed Nov 30, 2024
1 parent 8edbeb3 commit e0d04eb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
1 change: 0 additions & 1 deletion examples/inputs.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

search = window.URLSearchParams.new(window.location.search)
runtime = search.get("runtime") or "mpy"
jQuery = window.jQuery
logger = logging.getLogger()


Expand Down
3 changes: 2 additions & 1 deletion ltk/jquery.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"parse_int", "parse_float", "local_storage", "find", "create", "find_list", "to_js",
"to_py", "schedule", "repeat", "cancel", "get", "delete", "get_time", "post", "async_proxy",
"observe", "proxy", "get_url_parameter", "set_url_parameter", "push_state", "inject_script",
"inject_css", "callback",
"inject_css", "callback", "jQuery",
]


Expand All @@ -41,6 +41,7 @@ class MonkeyPatchedTimeModuleForMicroPython:
parse_float = window.parseFloat
local_storage = window.localStorage
timers = {}
jQuery = window.jQuery


def find(selector):
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "pyscript-ltk"
version = "0.2.11"
version = "0.2.12"
description = "A little toolkit for writing UIs in PyScript"
readme = "README.md"
authors = [{ name = "Chris Laffra", email = "chris@chrislaffra.com" }]
Expand Down

0 comments on commit e0d04eb

Please sign in to comment.