diff --git a/src/theme-manager.coffee b/src/theme-manager.coffee index 0f019dbf0..e83ab5b80 100644 --- a/src/theme-manager.coffee +++ b/src/theme-manager.coffee @@ -127,7 +127,7 @@ class ThemeManager # Resolve and apply the stylesheet specified by the path. # - # This supports both CSS and Less stylsheets. + # This supports both CSS and Less stylesheets. # # * `stylesheetPath` A {String} path to the stylesheet that can be an absolute # path or a relative path that will be resolved against the load path. @@ -142,8 +142,8 @@ class ThemeManager throw new Error("Could not find a file at path '#{stylesheetPath}'") unwatchUserStylesheet: -> - @userStylsheetSubscriptions?.dispose() - @userStylsheetSubscriptions = null + @userStylesheetSubscriptions?.dispose() + @userStylesheetSubscriptions = null @userStylesheetFile = null @userStyleSheetDisposable?.dispose() @userStyleSheetDisposable = null @@ -156,11 +156,11 @@ class ThemeManager try @userStylesheetFile = new File(userStylesheetPath) - @userStylsheetSubscriptions = new CompositeDisposable() + @userStylesheetSubscriptions = new CompositeDisposable() reloadStylesheet = => @loadUserStylesheet() - @userStylsheetSubscriptions.add(@userStylesheetFile.onDidChange(reloadStylesheet)) - @userStylsheetSubscriptions.add(@userStylesheetFile.onDidRename(reloadStylesheet)) - @userStylsheetSubscriptions.add(@userStylesheetFile.onDidDelete(reloadStylesheet)) + @userStylesheetSubscriptions.add(@userStylesheetFile.onDidChange(reloadStylesheet)) + @userStylesheetSubscriptions.add(@userStylesheetFile.onDidRename(reloadStylesheet)) + @userStylesheetSubscriptions.add(@userStylesheetFile.onDidDelete(reloadStylesheet)) catch error message = """ Unable to watch path: `#{path.basename(userStylesheetPath)}`. Make sure