Skip to content

Commit

Permalink
var statement to prevent that` from leaking into the global scope
Browse files Browse the repository at this point in the history
  • Loading branch information
kylefox committed Apr 6, 2013
1 parent 04e8fad commit b7865f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jquery.modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@
if (!current) return;
if (event) event.preventDefault();
current.close();
that = current.$elm;
var that = current.$elm;
current = null;
return that;
};
Expand Down

0 comments on commit b7865f5

Please sign in to comment.