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
as-cii committed Apr 25, 2016
1 parent b24a337 commit 79e6eec
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/marker.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -102,12 +102,12 @@ class Marker
#
# Returns a {Disposable} on which `.dispose()` can be called to unsubscribe.
onDidChange: (callback) ->
Grim.deprecate("""
Subscribing to marker change events is deprecated. Please, consider using
MarkerLayer.prototype.onDidUpdate instead.
""")

unless @hasChangeObservers
Grim.deprecate("""
Subscribing to marker change events is deprecated. Please, consider using
`MarkerLayer.prototype.onDidUpdate` instead.
""")

@previousEventState = @getSnapshot(@getRange())
@hasChangeObservers = true
@layer.markersIdsWithChangeSubscriptions.add(@id)
Expand Down

0 comments on commit 79e6eec

Please sign in to comment.