mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Merge remote-tracking branch 'origin/master' into ns-workspace-custom-elements
Conflicts: package.json src/workspace.coffee
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
Serializable = require 'serializable'
|
||||
Grim = require 'grim'
|
||||
PaneAxis = require './pane-axis'
|
||||
Editor = require './editor'
|
||||
TextEditor = require './text-editor'
|
||||
PaneView = null
|
||||
|
||||
# Extended: A container for presenting content in the center of the workspace.
|
||||
@@ -260,9 +260,9 @@ class Pane extends Model
|
||||
@emitter.emit 'did-change-active-item', @activeItem
|
||||
@activeItem
|
||||
|
||||
# Return an {Editor} if the pane item is an {Editor}, or null otherwise.
|
||||
# Return an {TextEditor} if the pane item is an {TextEditor}, or null otherwise.
|
||||
getActiveEditor: ->
|
||||
@activeItem if @activeItem instanceof Editor
|
||||
@activeItem if @activeItem instanceof TextEditor
|
||||
|
||||
# Public: Return the item at the given index.
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user