 
   constructor: (@path, @metadata) ->
     @emitter = new Emitter
-    @stylesheetDisposables = new CompositeDisposable
     @metadata ?= Package.loadMetadata(@path)
     @bundledPackage = Package.isBundledPackagePath(@path)
     @name = @metadata?.name ? path.basename(@path)


    context = 'atom-text-editor' if @metadata.theme is 'syntax'
    group = @getStylesheetType()
    for [sourcePath, source] in @stylesheets
      @stylesheetDisposables.add(atom.styles.addStyleSheet(source, {sourcePath, sourcePath, context}))
    @stylesheetsActivated = true

  activateResources: ->

  deactivateResources: ->
    grammar.deactivate() for grammar in @grammars
    scopedProperties.deactivate() for scopedProperties in @scopedProperties
    @stylesheetDisposables?.dispose()
    @activationDisposables?.dispose()
    @stylesheetsActivated = false
    @grammarsActivated = false
