PlanetMaster
Member
I have an HTML Widget that uses some JS.
Since the JS is tiny, I'm just using it inline to save one HTTP request.
The following JS works fine in Widgets (and Templates) but throws a syntax error before even saving when minified.
JS original:
JS minified:
Any ideas what could be causing the issue?
Since the JS is tiny, I'm just using it inline to save one HTTP request.
The following JS works fine in Widgets (and Templates) but throws a syntax error before even saving when minified.
JS original:
JavaScript:
$('.xhfb-hover').hover(function() {
$(this).closest('.xhfb1,.xhfb2,.xhfb3,.xhfb4').addClass('hover');
}, function() {
$(this).closest('.xhfb1,.xhfb2,.xhfb3,.xhfb4').removeClass('hover');
});
JS minified:
JavaScript:
$('.xhfb-hover').hover(function(){$(this).closest('.xhfb1,.xhfb2,.xhfb3,.xhfb4').addClass('hover')},function(){$(this).closest('.xhfb1,.xhfb2,.xhfb3,.xhfb4').removeClass('hover')})
Any ideas what could be causing the issue?