MCPcopy Index your code
hub / github.com/pyscript/pyscript / clear

Method clear

core/src/stdlib/pyscript/web.py:796–802  ·  view source on GitHub ↗

Remove all CSS classes.

(self)

Source from the content-addressed store, hash-verified

794 self._class_list.remove(name)
795
796 def clear(self):
797 """
798 Remove all CSS classes.
799 """
800 super().clear()
801 while self._class_list.length > 0:
802 self._class_list.remove(self._class_list.item(0))
803
804
805class Style(dict):

Callers

nothing calls this directly

Calls 1

removeMethod · 0.45

Tested by

no test coverage detected