mirror of
https://github.com/atom/atom.git
synced 2026-01-15 01:48:15 -05:00
Add WorkspaceView and atom.workspaceView shims
This commit is contained in:
@@ -22,6 +22,7 @@ unless process.env.ATOM_SHELL_INTERNAL_RUN_AS_NODE
|
||||
module.exports.$$$ = $$$
|
||||
module.exports.Editor = require '../src/editor-view'
|
||||
module.exports.RootView = require '../src/root-view'
|
||||
module.exports.WorkspaceView = require '../src/root-view'
|
||||
module.exports.SelectList = require '../src/select-list'
|
||||
module.exports.ScrollView = require '../src/scroll-view'
|
||||
module.exports.Task = require '../src/task'
|
||||
|
||||
@@ -43,6 +43,11 @@ class Atom
|
||||
@rootViewParentSelector = 'body'
|
||||
@deserializers = new DeserializerManager()
|
||||
|
||||
#TODO Remove once all `atom.rootView` references have been updated
|
||||
Object.defineProperty this, 'workspaceView',
|
||||
get: -> @rootView
|
||||
set: (workspaceView) -> @rootView = workspaceView
|
||||
|
||||
# Private: Initialize all the properties in this object.
|
||||
initialize: ->
|
||||
@unsubscribe()
|
||||
|
||||
Reference in New Issue
Block a user