From 19f1aeaa99b19263b753c70031173afbf72ab40d Mon Sep 17 00:00:00 2001 From: abe33 Date: Sat, 13 Dec 2014 00:40:53 +0100 Subject: [PATCH] Add stub for minimap element --- lib/minimap-element.coffee | 13 +++++++++++++ spec/minimap-element-spec.coffee | 6 ++++++ 2 files changed, 19 insertions(+) create mode 100644 lib/minimap-element.coffee create mode 100644 spec/minimap-element-spec.coffee 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')