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

Commit 79e6eec

Browse files
committed
🎨
1 parent b24a337 commit 79e6eec

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/marker.coffee

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -102,12 +102,12 @@ class Marker
102102
#
103103
# Returns a {Disposable} on which `.dispose()` can be called to unsubscribe.
104104
onDidChange: (callback) ->
105-
Grim.deprecate("""
106-
Subscribing to marker change events is deprecated. Please, consider using
107-
MarkerLayer.prototype.onDidUpdate instead.
108-
""")
109-
110105
unless @hasChangeObservers
106+
Grim.deprecate("""
107+
Subscribing to marker change events is deprecated. Please, consider using
108+
`MarkerLayer.prototype.onDidUpdate` instead.
109+
""")
110+
111111
@previousEventState = @getSnapshot(@getRange())
112112
@hasChangeObservers = true
113113
@layer.markersIdsWithChangeSubscriptions.add(@id)

0 commit comments

Comments
 (0)