mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Add sections for events
This commit is contained in:
@@ -54,6 +54,10 @@ class Cursor extends Model
|
||||
@emitter.dispose()
|
||||
@needsAutoscroll = true
|
||||
|
||||
###
|
||||
Section: Events
|
||||
###
|
||||
|
||||
# Essential: Calls your `callback` when the cursor has been moved.
|
||||
#
|
||||
# * `callback` {Function}
|
||||
@@ -91,6 +95,10 @@ class Cursor extends Model
|
||||
Grim.deprecate("::on is no longer supported. Use the event subscription methods instead")
|
||||
super
|
||||
|
||||
###
|
||||
Section: Methods
|
||||
###
|
||||
|
||||
destroy: ->
|
||||
@marker.destroy()
|
||||
|
||||
|
||||
@@ -30,6 +30,10 @@ class Selection extends Model
|
||||
@emitter.emit 'did-destroy'
|
||||
@emitter.dispose()
|
||||
|
||||
###
|
||||
Section: Events
|
||||
###
|
||||
|
||||
# Extended: Calls your `callback` when the selection was moved.
|
||||
#
|
||||
# * `callback` {Function}
|
||||
@@ -52,6 +56,10 @@ class Selection extends Model
|
||||
|
||||
super
|
||||
|
||||
###
|
||||
Section: Methods
|
||||
###
|
||||
|
||||
destroy: ->
|
||||
@marker.destroy()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user