Skip to content

Commit

Permalink
Keep upgrading deprecated selectors until 1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinsawicki committed Jun 8, 2015
1 parent 2893772 commit 6859a29
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/styles-element.coffee
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{Emitter, CompositeDisposable} = require 'event-kit'
{includeDeprecatedAPIs} = require 'grim'

class StylesElement extends HTMLElement
subscriptions: null
Expand All @@ -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()
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 6859a29

Please sign in to comment.