mirror of
https://github.com/atom/atom.git
synced 2026-01-25 06:48:28 -05:00
onDidTerminatePendingState ➡️ onItemDidTerminatePendingState
Signed-off-by: Katrina Uychaco <kuychaco@github.com>
This commit is contained in:
committed by
Katrina Uychaco
parent
92bbbf0645
commit
2dad38a782
@@ -441,8 +441,10 @@ class Pane extends Model
|
||||
item
|
||||
|
||||
setPendingItem: (item) =>
|
||||
@pendingItem = item if @pendingItem isnt item
|
||||
@emitter.emit 'did-terminate-pending-state' if not item
|
||||
if @pendingItem isnt item
|
||||
mostRecentPendingItem = @pendingItem
|
||||
@pendingItem = item
|
||||
@emitter.emit 'item-did-terminate-pending-state', mostRecentPendingItem
|
||||
|
||||
getPendingItem: =>
|
||||
@pendingItem or null
|
||||
@@ -450,8 +452,8 @@ class Pane extends Model
|
||||
clearPendingItem: =>
|
||||
@setPendingItem(null)
|
||||
|
||||
onDidTerminatePendingState: (callback) =>
|
||||
@emitter.on 'did-terminate-pending-state', callback
|
||||
onItemDidTerminatePendingState: (callback) =>
|
||||
@emitter.on 'item-did-terminate-pending-state', callback
|
||||
|
||||
# Public: Add the given items to the pane.
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user