Rename to LinesTileComponent

This commit is contained in:
Antonio Scandurra
2015-06-12 18:32:40 +02:00
parent 6bff934b76
commit 374aaac7b5
2 changed files with 3 additions and 3 deletions

View File

@@ -1,7 +1,7 @@
{$$} = require 'space-pen'
CursorsComponent = require './cursors-component'
TileComponent = require './tile-component'
LinesTileComponent = require './lines-tile-component'
TiledComponent = require './tiled-component'
DummyLineNode = $$(-> @div className: 'line', style: 'position: absolute; visibility: hidden;', => @span 'x')[0]
@@ -58,7 +58,7 @@ class LinesComponent extends TiledComponent
@oldState.width = @newState.width
@oldState.backgroundColor = @newState.backgroundColor
buildComponentForTile: (id) -> new TileComponent({id, @presenter})
buildComponentForTile: (id) -> new LinesTileComponent({id, @presenter})
buildEmptyState: ->
{tiles: {}}

View File

@@ -13,7 +13,7 @@ cloneObject = (object) ->
clone
module.exports =
class TileComponent
class LinesTileComponent
constructor: ({@presenter, @id}) ->
@tokenIterator = new TokenIterator
@measuredLines = new Set