TryGhost/Ghost — pull request #4682 by jaswilli (2014-12-18 23:11:04+00:00)
Title: Prevent error when closing modal dialog

No Issue
- Moved sendAction outside of the event handler as calling it
from inside was generating an error in the console.

Error can be reproduced by causing a modal dialog to appear (delete post / delete tag) and then clicking "cancel."