From b7865f5b2b09bb8efb20d5c8681cada6c7a8ce29 Mon Sep 17 00:00:00 2001 From: Kyle Fox Date: Sat, 6 Apr 2013 09:44:42 -0600 Subject: [PATCH] `var statement to prevent `that` from leaking into the global scope --- jquery.modal.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jquery.modal.js b/jquery.modal.js index 0506d02..938eeb7 100644 --- a/jquery.modal.js +++ b/jquery.modal.js @@ -136,7 +136,7 @@ if (!current) return; if (event) event.preventDefault(); current.close(); - that = current.$elm; + var that = current.$elm; current = null; return that; };