mirror of
https://github.com/atom/atom.git
synced 2026-01-22 13:28:01 -05:00
Keep upgrading deprecated selectors until 1.0
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
{Emitter, CompositeDisposable} = require 'event-kit'
|
||||
{includeDeprecatedAPIs} = require 'grim'
|
||||
|
||||
class StylesElement extends HTMLElement
|
||||
subscriptions: null
|
||||
@@ -19,7 +18,7 @@ class StylesElement extends HTMLElement
|
||||
@styleElementClonesByOriginalElement = new WeakMap
|
||||
|
||||
attachedCallback: ->
|
||||
if includeDeprecatedAPIs and @context is 'atom-text-editor'
|
||||
if @context is 'atom-text-editor'
|
||||
for styleElement in @children
|
||||
@upgradeDeprecatedSelectors(styleElement)
|
||||
@initialize()
|
||||
@@ -67,7 +66,7 @@ class StylesElement extends HTMLElement
|
||||
|
||||
@insertBefore(styleElementClone, insertBefore)
|
||||
|
||||
if includeDeprecatedAPIs and @context is 'atom-text-editor'
|
||||
if @context is 'atom-text-editor'
|
||||
@upgradeDeprecatedSelectors(styleElementClone)
|
||||
|
||||
@emitter.emit 'did-add-style-element', styleElementClone
|
||||
|
||||
Reference in New Issue
Block a user