mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Doesn't crash on empty key bindings.
This commit is contained in:
@@ -21,7 +21,7 @@ class KeyBinder
|
||||
# Watcher.watch path, =>
|
||||
# @load path
|
||||
|
||||
json = CoffeeScript.eval "return " + (fs.read path)
|
||||
json = (CoffeeScript.eval "return " + (fs.read path)) or {}
|
||||
# Iterate in reverse order scopes are declared.
|
||||
# Scope at the top of the file is checked last.
|
||||
for name in _.keys(json).reverse()
|
||||
|
||||
Reference in New Issue
Block a user