From 6a4f0fb24fb0f7448a0855feb6882575a370e324 Mon Sep 17 00:00:00 2001 From: Remi Caput Date: Sat, 11 Aug 2018 16:53:15 +0200 Subject: [PATCH] Add missing "var" to avoid global namespace pollution. --- markitup/jquery.markitup.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/markitup/jquery.markitup.js b/markitup/jquery.markitup.js index fc1ba1a..4ea585c 100755 --- a/markitup/jquery.markitup.js +++ b/markitup/jquery.markitup.js @@ -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]; }