From 7a503c088880d8c299f1e207d226a5b6010509c0 Mon Sep 17 00:00:00 2001 From: franzz Date: Mon, 25 Feb 2019 19:55:31 +0100 Subject: [PATCH] fix IE11 bug (not supporting ES6) --- script/spot.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/script/spot.js b/script/spot.js index c70e981..ed9c561 100755 --- a/script/spot.js +++ b/script/spot.js @@ -280,7 +280,8 @@ $.prototype.hoverSwap = function(sDefault, sHover) sDefault = $This.data('default'); if(sDefault!='' && sHover != '') { - $This.fadeOut('fast', () => { + $This.fadeOut('fast', function() { + var $This = $(this); $This.text((sDefault==$This.text())?sHover:sDefault).fadeIn('fast'); }); }