Centralize deprecation warnings about getUri in Pane::addItem

This commit is contained in:
Nathan Sobo
2015-01-14 11:36:28 -07:00
parent 56da4f49d4
commit 0a66e9d21e
2 changed files with 29 additions and 7 deletions

View File

@@ -658,7 +658,6 @@ class Workspace extends Model
if typeof item.getURI is 'function'
uri = item.getURI()
else if typeof item.getUri is 'function'
deprecate("Pane items should implement `::getURI` instead of `::getUri`.")
uri = item.getUri()
if uri?
@@ -669,7 +668,6 @@ class Workspace extends Model
if typeof item.getURI is 'function'
uri = item.getURI()
else if typeof item.getUri is 'function'
deprecate("Pane items should implement `::getURI` instead of `::getUri`.")
uri = item.getUri()
if uri?