mirror of
https://github.com/pyscript/pyscript.git
synced 2025-12-19 18:27:29 -05:00
fix: typo in "isinstance" in Element.snap. (#2071)
Co-authored-by: Fabio Pliger <fpliger@users.noreply.github.com> Co-authored-by: Andrea Giammarchi <andrea.giammarchi@gmail.com>
This commit is contained in:
@@ -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