Replace ::hasRequiredMeasurements() with specific criteria in presenter

Now each update method requires a list of specific variables to be
defined before running.
This commit is contained in:
Nathan Sobo
2015-02-12 19:48:06 -07:00
parent 5b6990f14c
commit 6a36bdda25
4 changed files with 63 additions and 72 deletions

View File

@@ -26,7 +26,7 @@ GutterComponent = React.createClass
div className: 'gutter',
div className: 'line-numbers', ref: 'lineNumbers', style:
height: scrollHeight
WebkitTransform: @getTransform() if presenter.hasRequiredMeasurements()
WebkitTransform: @getTransform()
backgroundColor: backgroundColor
getTransform: ->