 {Emitter, CompositeDisposable} = require 'event-kit'
-{includeDeprecatedAPIs} = require 'grim'
 
 class StylesElement extends HTMLElement
   subscriptions: null


    @insertBefore(styleElementClone, insertBefore)

    if includeDeprecatedAPIs and @context is 'atom-text-editor'
      @upgradeDeprecatedSelectors(styleElementClone)

    @emitter.emit 'did-add-style-element', styleElementClone

    @styleElementClonesByOriginalElement = new WeakMap

  attachedCallback: ->
    if @context is 'atom-text-editor'
      for styleElement in @children
        @upgradeDeprecatedSelectors(styleElement)
    @initialize()
