Keep around atom.config.unobserve no-op

This commit is contained in:
Kevin Sawicki
2015-06-01 13:32:03 -07:00
parent fed19872b3
commit 703eaac7ca

View File

@@ -1158,6 +1158,9 @@ withoutEmptyObjects = (object) ->
resultObject = object
resultObject
Config::unobserve = (keyPath) ->
Grim.deprecate 'Config::unobserve no longer does anything. Call `.dispose()` on the object returned by Config::observe instead.'
if Grim.includeDeprecatedAPIs
EmitterMixin = require('emissary').Emitter
EmitterMixin.includeInto(Config)
@@ -1207,9 +1210,6 @@ if Grim.includeDeprecatedAPIs
Grim.deprecate 'Config::toggle is no longer supported. Please remove from your code.'
@set(keyPath, not @get(keyPath))
Config::unobserve = (keyPath) ->
Grim.deprecate 'Config::unobserve no longer does anything. Call `.dispose()` on the object returned by Config::observe instead.'
Config::addScopedSettings = (source, selector, value, options) ->
Grim.deprecate("Use ::set instead")
settingsBySelector = {}