mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
Add deprecated check for item.getUri
This commit is contained in:
@@ -49,7 +49,7 @@ class Pane extends Model
|
||||
params.activeItem = find params.items, (item) ->
|
||||
if typeof item.getURI is 'function'
|
||||
itemURI = item.getURI()
|
||||
else if typeof item.getUri is 'function'
|
||||
else if Grim.includeDeprecatedAPIs and typeof item.getUri is 'function'
|
||||
itemURI = item.getUri()
|
||||
|
||||
itemURI is activeItemURI
|
||||
|
||||
Reference in New Issue
Block a user