fix IE11 bug (not supporting ES6)
This commit is contained in:
@@ -280,7 +280,8 @@ $.prototype.hoverSwap = function(sDefault, sHover)
|
|||||||
sDefault = $This.data('default');
|
sDefault = $This.data('default');
|
||||||
|
|
||||||
if(sDefault!='' && sHover != '') {
|
if(sDefault!='' && sHover != '') {
|
||||||
$This.fadeOut('fast', () => {
|
$This.fadeOut('fast', function() {
|
||||||
|
var $This = $(this);
|
||||||
$This.text((sDefault==$This.text())?sHover:sDefault).fadeIn('fast');
|
$This.text((sDefault==$This.text())?sHover:sDefault).fadeIn('fast');
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user