diff --git a/lib/minimap-element.coffee b/lib/minimap-element.coffee new file mode 100644 index 00000000..b636c932 --- /dev/null +++ b/lib/minimap-element.coffee @@ -0,0 +1,13 @@ + +class MinimapElement extends HTMLElement + createdCallback: -> + @initializeContent() + + attachedCallback: -> + detachedCallback: -> + attributeChangedCallback: (attrName, oldValue, newValue) -> + + initializeContent: -> + @shadowRoot = @createShadowRoot() + +module.exports = MinimapElement = document.registerElement 'minimap', prototype: MinimapElement.prototype diff --git a/spec/minimap-element-spec.coffee b/spec/minimap-element-spec.coffee new file mode 100644 index 00000000..bcce0c4b --- /dev/null +++ b/spec/minimap-element-spec.coffee @@ -0,0 +1,6 @@ + +describe 'MinimapElement', -> + jasmineContent = null + + beforeEach -> + jasmineContent = document.body.querySelector('#jasmine-content')