FireFox error because of missing ‘;’ breaks EasyFancyBox (failure prevents bind)
-
I applied a small fix to your code in order to fix this problem.
There is your original on line 205-206 of “wp-content/plugins/easy-fancybox/inc/class-easyfancybox.php”:
}
var easy_fancybox_auto = function(){';As we can see, we close a
}and then we have avar. By adding a;after the}, it works for me:};
var easy_fancybox_auto = function(){';I have FireFox version 59.0.
Without the
;I get an error in the console saying that it is missing. It’s good practice to end all your JavaScript lines with a;anyway.Because of that error, the jQuery
bind()does not occur and my images don’t get fancied as expected.- This topic was modified 8 years, 6 months ago by . Reason: Added line # and filename to make it easy to find the code to fix
The page I need help with: [log in to see the link]
The topic ‘FireFox error because of missing ‘;’ breaks EasyFancyBox (failure prevents bind)’ is closed to new replies.