Use ‘atom-pane-axis’ custom tag name for PaneAxisElement

This commit is contained in:
Nathan Sobo
2014-10-08 11:32:58 -07:00
parent ee9284e228
commit ddf36a013c
6 changed files with 27 additions and 29 deletions

View File

@@ -17,9 +17,9 @@ class PaneAxisElement extends HTMLElement
switch @model.getOrientation()
when 'horizontal'
@classList.add('pane-row')
@classList.add('horizontal', 'pane-row')
when 'vertical'
@classList.add('pane-column')
@classList.add('vertical', 'pane-column')
childAdded: ({child, index}) ->
view = @model.getView(child)
@@ -39,6 +39,4 @@ class PaneAxisElement extends HTMLElement
hasFocus: ->
this is document.activeElement or @contains(document.activeElement)
module.exports = PaneAxisElement = document.registerElement 'atom-pane-axis',
prototype: PaneAxisElement.prototype
extends: 'div'
module.exports = PaneAxisElement = document.registerElement 'atom-pane-axis', prototype: PaneAxisElement.prototype