Don’t build ::specialTokens unless properties are provided

This commit is contained in:
Nathan Sobo
2015-05-12 19:36:53 +02:00
parent 6befa0200f
commit d90d1f0ea7

View File

@@ -22,10 +22,10 @@ class TokenizedLine
constructor: (properties) ->
@id = idCounter++
@specialTokens = {}
return unless properties?
@specialTokens = {}
{@parentScopes, @text, @tags, @lineEnding, @ruleStack} = properties
{@startBufferColumn, @fold, @tabLength, @indentLevel, @invisibles} = properties