From ea385dad4bb6752075d62122fd95d4a648a8af7f Mon Sep 17 00:00:00 2001 From: Corey Johnson & Nathan Sobo Date: Thu, 19 Jul 2012 19:13:28 -0600 Subject: [PATCH] Don't swallow all command panel errors as if they were SyntaxErrors This wasn't our fault. SyntaxError's implementation is weird and so every error ends up being an instance of it. Boo. --- src/extensions/command-panel/command-panel.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/extensions/command-panel/command-panel.coffee b/src/extensions/command-panel/command-panel.coffee index 9a7d0f30a..f299e4e03 100644 --- a/src/extensions/command-panel/command-panel.coffee +++ b/src/extensions/command-panel/command-panel.coffee @@ -81,7 +81,7 @@ class CommandPanel extends View else @detach() catch error - if error instanceof SyntaxError + if error.name is "SyntaxError" @flashError() return else