Fix double-binding to submit event

Fixes #916.
Merge pull request #922 from spicyj/submit-submit

Fix double-binding to submit event