Don't update the GutterComponent if there's no renderedRowRange

This commit is contained in:
Nathan Sobo
2014-07-21 14:28:48 -07:00
parent fb4361e976
commit a68b9a793f

View File

@@ -51,6 +51,8 @@ GutterComponent = React.createClass
)
{renderedRowRange, pendingChanges, lineDecorations} = newProps
return false unless renderedRowRange?
for change in pendingChanges when Math.abs(change.screenDelta) > 0 or Math.abs(change.bufferDelta) > 0
return true unless change.end <= renderedRowRange.start or renderedRowRange.end <= change.start