Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Commit

Permalink
🎨
Browse files Browse the repository at this point in the history
  • Loading branch information
Antonio Scandurra committed May 3, 2017
1 parent f52f4d1 commit dff963b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/marker-layer.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -400,9 +400,10 @@ class MarkerLayer
Point.assertValid(range.end)
@index.insert(id, range.start, range.end)
marker = new Marker(id, this, range, params)
@markersById[id] = marker
@markerTextDecorationLayers.forEach (markerTextDecorationLayer) ->
markerTextDecorationLayer.didCreateMarker(range)
@markersById[id] = marker
marker

emitUpdateEvent: ->
@emitter.emit('did-update')
Expand Down
4 changes: 2 additions & 2 deletions src/marker-text-decoration-layer.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ class MarkerTextDecorationLayer {
}

didMoveMarker (oldRange, newRange) {
this.didDestroyMarker(oldRange)
this.didCreateMarker(newRange)
this.emitter.emit('did-invalidate-range', oldRange)
this.emitter.emit('did-invalidate-range', newRange)
}

didDestroyMarker (range) {
Expand Down

0 comments on commit dff963b

Please sign in to comment.