From 2001ed423b0e4f5399e0343b2a2a5e32d8a6155d Mon Sep 17 00:00:00 2001 From: Martin Zimmermann Date: Wed, 23 Jul 2014 17:23:18 +0200 Subject: [PATCH] limit variable scope --- isso/js/app/isso.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/isso/js/app/isso.js b/isso/js/app/isso.js index d6ef149..b5236d8 100644 --- a/isso/js/app/isso.js +++ b/isso/js/app/isso.js @@ -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; }