diff --git a/attr.js b/attr.js index 17f9d58..1aa3d8e 100644 --- a/attr.js +++ b/attr.js @@ -30,8 +30,7 @@ class CustomAttributeRegistry { _observe(){ var customAttributes = this; - var document = this.ownerDocument; - var root = document.documentElement; + var root = this.ownerDocument; var downgrade = this._downgrade.bind(this); var upgrade = this._upgradeElement.bind(this); @@ -130,5 +129,6 @@ class CustomAttributeRegistry { } } +window.CustomAttributeRegistry = CustomAttributeRegistry; window.customAttributes = new CustomAttributeRegistry(document); })();