Implement shouldComponentUpdate for SelectionsComponent

This commit is contained in:
Corey Johnson & Nathan Sobo
2014-05-15 11:50:25 -06:00
committed by Nathan Sobo
parent 7dfe829fc8
commit 3f01e2f748
3 changed files with 35 additions and 9 deletions

View File

@@ -22,7 +22,7 @@ LinesComponent = React.createClass
WebkitTransform: "translate3d(#{-scrollLeft}px, #{-scrollTop}px, 0px)"
div {className: 'lines', style},
SelectionsComponent({editor, lineHeight}) if @isMounted
SelectionsComponent({editor, lineHeight}) if @isMounted()
componentWillMount: ->
@measuredLines = new WeakSet