removed unnecessary object property set

This commit is contained in:
Marcin Chwedziak 2013-05-09 21:24:24 +02:00
parent 3960ecfcdb
commit c170062eae

View file

@ -244,8 +244,7 @@ class Morris.Grid extends Morris.EventEmitter
if @options.xLabelsDiagonal if @options.xLabelsDiagonal
bottomOffsets = for i in [0...@data.length] bottomOffsets = for i in [0...@data.length]
@measureText(@data[i].text, @options.gridTextSize, -90).height @measureText(@data[i].text, @options.gridTextSize, -90).height
@maxXLabelHeight = Math.max(bottomOffsets...) @bottom -= Math.max(bottomOffsets...)
@bottom -= @maxXLabelHeight
else else
@bottom -= 1.5 * @options.gridTextSize @bottom -= 1.5 * @options.gridTextSize
@width = Math.max(1, @right - @left) @width = Math.max(1, @right - @left)