Skip to content

Commit

Permalink
Add missing "var" to avoid global namespace pollution.
Browse files Browse the repository at this point in the history
  • Loading branch information
Remi Caput committed Aug 11, 2018
1 parent 945bcca commit 6a4f0fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion markitup/jquery.markitup.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
// compute markItUp! path
if (!options.root) {
$('script').each(function(a, tag) {
miuScript = $(tag).get(0).src.match(/(.*)jquery\.markitup(\.pack)?\.js$/);
var miuScript = $(tag).get(0).src.match(/(.*)jquery\.markitup(\.pack)?\.js$/);
if (miuScript !== null) {
options.root = miuScript[1];
}
Expand Down

0 comments on commit 6a4f0fb

Please sign in to comment.