From 596987fbce4cd047706b2b34aa9df815dd6311ad Mon Sep 17 00:00:00 2001 From: Nathan Sobo Date: Wed, 15 Oct 2014 13:43:12 -0600 Subject: [PATCH] Fix sourcePath on text editor stylesheet loading --- src/theme-manager.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/theme-manager.coffee b/src/theme-manager.coffee index b161c6279..4919fbef2 100644 --- a/src/theme-manager.coffee +++ b/src/theme-manager.coffee @@ -250,7 +250,7 @@ class ThemeManager @requireStylesheet(nativeStylesheetPath) textEditorStylesPath = path.join(@resourcePath, 'static', 'editor.less') - atom.styles.addStyleSheet(@loadLessStylesheet(textEditorStylesPath), sourcePath: 'textEditorStylesPath', context: 'atom-text-editor') + atom.styles.addStyleSheet(@loadLessStylesheet(textEditorStylesPath), sourcePath: textEditorStylesPath, context: 'atom-text-editor') stylesheetElementForId: (id) -> document.head.querySelector("atom-styles style[source-path=\"#{id}\"]")