Default TokenizedBuffer options hash to {}

This commit is contained in:
Nathan Sobo
2013-04-25 16:26:33 -06:00
parent 20073c9d34
commit 7e0ac1db9c

View File

@@ -24,7 +24,7 @@ class TokenizedBuffer
invalidRows: null
visible: false
constructor: (@buffer, { @tabLength }) ->
constructor: (@buffer, { @tabLength } = {}) ->
@tabLength ?= 2
@id = @constructor.idCounter++