Fix id generation

This commit is contained in:
Ben Ogle
2014-06-16 16:06:01 -07:00
parent c21f8a5a6c
commit 7ba498a170

View File

@@ -17,7 +17,7 @@ HighlightsComponent = React.createClass
for markerId, decorations of highlightDecorations
if decorations?
for decoration in decorations
highlightComponents.push(HighlightComponent({key: markerId + decoration.class, decoration, editor, lineHeightInPixels}))
highlightComponents.push(HighlightComponent({key: "#{markerId}-#{decoration.class}", decoration, editor, lineHeightInPixels}))
highlightComponents
shouldComponentUpdate: (newProps) ->