From cec35ed7c888fb5764804d887abd0a29ea178451 Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Mon, 17 Feb 2014 11:31:44 -0800 Subject: [PATCH] Use name ivar instead of metadata.name --- src/theme-package.coffee | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/theme-package.coffee b/src/theme-package.coffee index 2d4f611a6..e83f7efcb 100644 --- a/src/theme-package.coffee +++ b/src/theme-package.coffee @@ -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: ->