Inject both underlayer and overlayer via shadow DOM insertion points

This commit is contained in:
Nathan Sobo
2014-10-20 11:49:23 -06:00
parent 2e46cf9b8d
commit 5cc243ec11
3 changed files with 11 additions and 5 deletions

View File

@@ -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,