Skip to content

Commit

Permalink
Merge pull request #35 from r3c/master
Browse files Browse the repository at this point in the history
Add missing "var" to avoid global namespace pollution.
  • Loading branch information
jaysalvat authored Aug 14, 2018
2 parents 945bcca + 6a4f0fb commit 1390d6c
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 1390d6c

Please sign in to comment.