From e5159f8c368f91bb001eb6f262a20514bd93c281 Mon Sep 17 00:00:00 2001 From: frmdstryr Date: Wed, 11 Mar 2020 10:03:39 -0400 Subject: [PATCH] Add weakref slot to Html tag --- CHANGELOG.md | 4 ++++ setup.py | 2 +- web/components/html.py | 2 ++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d1e442f..39fb644 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +# 0.8.10 + +Add slot to support weakref on the Html tag + # 0.8.9 Change tag attribute to use `set_default` instead of lower of class name. diff --git a/setup.py b/setup.py index d326690..69aa961 100644 --- a/setup.py +++ b/setup.py @@ -7,7 +7,7 @@ setup( name='enaml-web', - version='0.8.9', + version='0.8.10', author='CodeLV', author_email='frmdstryr@gmail.com', url='https://github.com/codelv/enaml-web', diff --git a/web/components/html.py b/web/components/html.py index 245c4a9..d8abdba 100644 --- a/web/components/html.py +++ b/web/components/html.py @@ -243,6 +243,8 @@ def render(self, **kwargs): class Html(Tag): + __slots__ = '__weakref__' + #: Set the tag name tag = set_default('html')