mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
Wrap getUri in deprecated API check
This commit is contained in:
@@ -41,9 +41,9 @@ class Pane extends Model
|
||||
|
||||
# Called by the Serializable mixin during serialization.
|
||||
serializeParams: ->
|
||||
if Grim.includeDeprecatedAPIs and typeof @activeItem?.getURI is 'function'
|
||||
if typeof @activeItem?.getURI is 'function'
|
||||
activeItemURI = @activeItem.getURI()
|
||||
else if typeof @activeItem?.getUri is 'function'
|
||||
else if Grim.includeDeprecatedAPIs and typeof @activeItem?.getUri is 'function'
|
||||
activeItemURI = @activeItem.getUri()
|
||||
|
||||
id: @id
|
||||
|
||||
Reference in New Issue
Block a user