mirror of
https://github.com/pyscript/pyscript.git
synced 2025-12-20 10:47:35 -05:00
Compare commits
1 Commits
when-updat
...
mc/fix-typ
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
251800d9e7 |
@@ -267,7 +267,7 @@ class Element(BaseElement):
|
|||||||
canvas._js.width = width
|
canvas._js.width = width
|
||||||
canvas._js.height = height
|
canvas._js.height = height
|
||||||
|
|
||||||
elif isistance(to, Element):
|
elif isinstance(to, Element):
|
||||||
if to._js.tagName != "CANVAS":
|
if to._js.tagName != "CANVAS":
|
||||||
raise TypeError("Element to snap to must a canvas.")
|
raise TypeError("Element to snap to must a canvas.")
|
||||||
canvas = to
|
canvas = to
|
||||||
|
|||||||
Reference in New Issue
Block a user