Skip to content

Commit

Permalink
Add stub for minimap element
Browse files Browse the repository at this point in the history
  • Loading branch information
abe33 committed Dec 12, 2014
1 parent c4d331e commit 19f1aea
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
13 changes: 13 additions & 0 deletions lib/minimap-element.coffee
Original file line number Diff line number Diff line change
@@ -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
6 changes: 6 additions & 0 deletions spec/minimap-element-spec.coffee
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

describe 'MinimapElement', ->
jasmineContent = null

beforeEach ->
jasmineContent = document.body.querySelector('#jasmine-content')

0 comments on commit 19f1aea

Please sign in to comment.