mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Remove destroyed event deprecation
This commit is contained in:
@@ -304,7 +304,6 @@ class Pane extends Model
|
||||
if typeof item.onDidDestroy is 'function'
|
||||
@itemSubscriptions.set item, item.onDidDestroy => @removeItem(item, true)
|
||||
else if Grim.includeDeprecatedAPIs and typeof item.on is 'function'
|
||||
Grim.deprecate 'If you would like your pane item to support removal when destroyed behavior, please implement a ::onDidDestroy() method. ::on methods for items are no longer supported. If not, ignore this message.'
|
||||
@subscribe item, 'destroyed', => @removeItem(item, true)
|
||||
|
||||
@items.splice(index, 0, item)
|
||||
|
||||
Reference in New Issue
Block a user