Use name ivar instead of metadata.name

This commit is contained in:
Kevin Sawicki
2014-02-17 11:31:44 -08:00
parent 95e68c8c2b
commit cec35ed7c8

View File

@@ -8,17 +8,17 @@ class ThemePackage extends AtomPackage
getStylesheetType: -> 'theme'
enable: ->
atom.config.unshiftAtKeyPath('core.themes', @metadata.name)
atom.config.unshiftAtKeyPath('core.themes', @name)
disable: ->
atom.config.removeAtKeyPath('core.themes', @metadata.name)
atom.config.removeAtKeyPath('core.themes', @name)
load: ->
@measure 'loadTime', =>
try
@metadata ?= Package.loadMetadata(@path)
catch e
console.warn "Failed to load theme named '#{@name}'", e.stack ? e
catch error
console.warn "Failed to load theme named '#{@name}'", error.stack ? error
this
activate: ->