This commit is contained in:
Machiste Quintana
2015-04-07 00:05:19 -04:00
parent 5d2392ea67
commit 2bb2022b5b
7 changed files with 9 additions and 9 deletions

View File

@@ -846,7 +846,7 @@ class Atom extends Model
setAutoHideMenuBar: (autoHide) ->
ipc.send('call-window-method', 'setAutoHideMenuBar', autoHide)
ipc.send('call-window-method', 'setMenuBarVisibility', !autoHide)
ipc.send('call-window-method', 'setMenuBarVisibility', not autoHide)
if includeDeprecatedAPIs
# Deprecated: Callers should be converted to use atom.deserializers

View File

@@ -1190,7 +1190,7 @@ if Grim.includeDeprecatedAPIs
Config::toggle = (keyPath) ->
Grim.deprecate 'Config::toggle is no longer supported. Please remove from your code.'
@set(keyPath, !@get(keyPath))
@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.'

View File

@@ -57,7 +57,7 @@ if includeDeprecatedAPIs
atom.config.scopedSettingsStore
GrammarRegistry::addProperties = (args...) ->
args.unshift(null) if args.length == 2
args.unshift(null) if args.length is 2
deprecate 'Consider using atom.config.set() instead. A direct (but private) replacement is available at atom.config.addScopedSettings().'
atom.config.addScopedSettings(args...)

View File

@@ -226,7 +226,7 @@ class TokenizedBuffer extends Model
[start, end] = @updateFoldableStatus(start, end + delta)
end -= delta
event = { start, end, delta, bufferChange: e }
event = {start, end, delta, bufferChange: e}
@emit 'changed', event if Grim.includeDeprecatedAPIs
@emitter.emit 'did-change', event

View File

@@ -156,9 +156,9 @@ atom.commands.add 'atom-workspace',
'window:focus-pane-on-left': -> @focusPaneViewOnLeft()
'window:focus-pane-on-right': -> @focusPaneViewOnRight()
'window:save-all': -> @getModel().saveAll()
'window:toggle-invisibles': -> atom.config.set("editor.showInvisibles", !atom.config.get("editor.showInvisibles"))
'window:toggle-invisibles': -> atom.config.set("editor.showInvisibles", not atom.config.get("editor.showInvisibles"))
'window:log-deprecation-warnings': -> Grim.logDeprecations()
'window:toggle-auto-indent': -> atom.config.set("editor.autoIndent", !atom.config.get("editor.autoIndent"))
'window:toggle-auto-indent': -> atom.config.set("editor.autoIndent", not atom.config.get("editor.autoIndent"))
'pane:reopen-closed-item': -> @getModel().reopenItem()
'core:close': -> @getModel().destroyActivePaneItemOrEmptyPane()
'core:save': -> @getModel().saveActivePaneItem()