mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
Inject both underlayer and overlayer via shadow DOM insertion points
This commit is contained in:
@@ -58,8 +58,9 @@ LinesComponent = React.createClass
|
||||
@renderedDecorationsByLineId = {}
|
||||
|
||||
componentDidMount: ->
|
||||
node = @getDOMNode()
|
||||
node.appendChild(document.createElement('content'))
|
||||
insertionPoint = document.createElement('content')
|
||||
insertionPoint.setAttribute('select', '.overlayer')
|
||||
@getDOMNode().appendChild(insertionPoint)
|
||||
|
||||
shouldComponentUpdate: (newProps) ->
|
||||
return true unless isEqualForProperties(newProps, @props,
|
||||
|
||||
Reference in New Issue
Block a user