limit variable scope

This commit is contained in:
Martin Zimmermann 2014-07-23 17:23:18 +02:00
parent bf5fc622ba
commit 2001ed423b

View File

@ -24,7 +24,7 @@ define(["app/dom", "app/utils", "app/config", "app/api", "app/jade", "app/i18n",
// submit form, initialize optional fields with `null` and reset form.
// If replied to a comment, remove form completely.
submit = $("[type=submit]", el)
var submit = $("[type=submit]", el)
if (submit === null) {
return el;
}