💄 and 📝 for pending API

This commit is contained in:
Katrina Uychaco
2016-02-25 17:21:01 -08:00
committed by Michelle Tilley
parent 1c65d0e5e4
commit 3848da4488
2 changed files with 14 additions and 36 deletions

View File

@@ -403,6 +403,9 @@ class Workspace extends Model
# containing pane. Defaults to `true`.
# * `activateItem` A {Boolean} indicating whether to call {Pane::activateItem}
# on containing pane. Defaults to `true`.
# * `pending` A {Boolean} indicating whether or not the item should be opened
# in a pending state. Existing pending items in a pane are replaced with
# new pending items when they are opened.
# * `searchAllPanes` A {Boolean}. If `true`, the workspace will attempt to
# activate an existing item for the given URI on any pane.
# If `false`, only the active pane will be searched for
@@ -477,7 +480,7 @@ class Workspace extends Model
if uri?
if item = pane.itemForURI(uri)
pane.setPendingItem(null) if not options.pending
pane.clearPendingItem() if not options.pending and pane.getPendingItem() is item
item ?= opener(uri, options) for opener in @getOpeners() when not item
try