Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Mar 4, 2024
1 parent 31d60cb commit 222a0c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions matplotlib_pyodide/browser_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,11 +189,11 @@ def ignore(event):
div.appendChild(bottom)

self.draw()

def destroy(self, *args, **kwargs):
div = document.getElementById(self._id)
parentElement = div.parentNode
if parentElement:
if parentElement:
parentElement.removeChild(div)
div.removeChild(div.firstChild)

Expand Down

0 comments on commit 222a0c3

Please sign in to comment.