mirror of
https://github.com/atom/atom.git
synced 2026-02-13 08:04:56 -05:00
Check deprecations flag for space pen shim inclusion
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
{CompositeDisposable} = require 'event-kit'
|
||||
Grim = require 'grim'
|
||||
{callAttachHooks} = require './space-pen-extensions'
|
||||
PaneContainerView = null
|
||||
_ = require 'underscore-plus'
|
||||
@@ -8,12 +9,14 @@ class PaneContainerElement extends HTMLElement
|
||||
createdCallback: ->
|
||||
@subscriptions = new CompositeDisposable
|
||||
@classList.add 'panes'
|
||||
PaneContainerView ?= require './pane-container-view'
|
||||
@__spacePenView = new PaneContainerView(this)
|
||||
|
||||
if Grim.includeDeprecations
|
||||
PaneContainerView ?= require './pane-container-view'
|
||||
@__spacePenView = new PaneContainerView(this)
|
||||
|
||||
initialize: (@model) ->
|
||||
@subscriptions.add @model.observeRoot(@rootChanged.bind(this))
|
||||
@__spacePenView.setModel(@model)
|
||||
@__spacePenView.setModel(@model) if Grim.includeDeprecations
|
||||
this
|
||||
|
||||
rootChanged: (root) ->
|
||||
|
||||
Reference in New Issue
Block a user