You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey Guys,
after not longer ignoring the newest jquery version i've tried a lot of methods to enable animsition
in jquery v3.*
I've found a solution without knowing why it is working. But it works.
The problem seems to be that the window Object is not available inside the function.
After reading a lot to this topic I add following lines
Is that it?
Maybe because jquery 3.4.1 doesn't support load?
So this line might not work? $window.on("load", function(e) { if(__.settings.timer) clearTimeout(__.settings.timer); __.in.call(_this); });
Hey Guys,
after not longer ignoring the newest jquery version i've tried a lot of methods to enable animsition
in jquery v3.*
I've found a solution without knowing why it is working. But it works.
The problem seems to be that the window Object is not available inside the function.
After reading a lot to this topic I add following lines
var loaded = false; $(window).on("load." + namespace, function() { loaded = true; }); var __ = { init: function(options) { //...
and
if(options.onLoadEvent) { if(loaded) { if(__.settings.timer) clearTimeout(__.settings.timer); __.in.call(_this); } else { $window.on("load", function(e) { if(__.settings.timer) clearTimeout(__.settings.timer); __.in.call(_this); }); }
However it works but I take no responsibility :)
I really hope, that the author will fix this correctly.
The text was updated successfully, but these errors were encountered: