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.
This commit is contained in:
Corey Johnson & Nathan Sobo
2012-07-19 19:13:28 -06:00
parent 239cba25e4
commit ea385dad4b

View File

@@ -81,7 +81,7 @@ class CommandPanel extends View
else
@detach()
catch error
if error instanceof SyntaxError
if error.name is "SyntaxError"
@flashError()
return
else