Fix sourcePath on text editor stylesheet loading

This commit is contained in:
Nathan Sobo
2014-10-15 13:43:12 -06:00
parent 2b218d2e01
commit 596987fbce

View File

@@ -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}\"]")