Take 'scope' option in Config::onDidChange

Deprecate passing the scope as an optional first argument
This commit is contained in:
Max Brunsfeld
2014-12-16 09:44:36 -08:00
parent 4e4794f3fd
commit 2cea51b50e
5 changed files with 56 additions and 14 deletions

View File

@@ -168,8 +168,8 @@ class TextEditor extends Model
scopeDescriptor = @getRootScopeDescriptor()
subscriptions.add atom.config.onDidChange scopeDescriptor, 'editor.showInvisibles', => @updateInvisibles()
subscriptions.add atom.config.onDidChange scopeDescriptor, 'editor.invisibles', => @updateInvisibles()
subscriptions.add atom.config.onDidChange 'editor.showInvisibles', scope: scopeDescriptor, => @updateInvisibles()
subscriptions.add atom.config.onDidChange 'editor.invisibles', scope: scopeDescriptor, => @updateInvisibles()
getViewClass: ->
require './text-editor-view'