This commit is contained in:
Antonio Scandurra
2015-06-05 16:05:30 +02:00
parent 9f21ccf54d
commit da05e1e234
4 changed files with 60 additions and 29 deletions

View File

@@ -1,7 +1,6 @@
{$$} = require 'space-pen'
CursorsComponent = require './cursors-component'
HighlightsComponent = require './highlights-component'
TileComponent = require './tile-component'
DummyLineNode = $$(-> @div className: 'line', style: 'position: absolute; visibility: hidden;', => @span 'x')[0]
@@ -24,9 +23,6 @@ class LinesComponent
@cursorsComponent = new CursorsComponent(@presenter)
@domNode.appendChild(@cursorsComponent.getDomNode())
@highlightsComponent = new HighlightsComponent(@presenter)
@domNode.appendChild(@highlightsComponent.getDomNode())
if @useShadowDOM
insertionPoint = document.createElement('content')
insertionPoint.setAttribute('select', '.overlayer')
@@ -63,7 +59,6 @@ class LinesComponent
@oldState.scrollWidth = @newState.scrollWidth
@cursorsComponent.updateSync(state)
@highlightsComponent.updateSync(state)
@oldState.indentGuidesVisible = @newState.indentGuidesVisible
@oldState.scrollWidth = @newState.scrollWidth