mirror of
https://github.com/atom/atom.git
synced 2026-01-24 14:28:14 -05:00
Use ‘atom-pane-axis’ custom tag name for PaneAxisElement
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user