{"id":10080678,"date":"2018-03-16T02:05:46","date_gmt":"2018-03-16T02:05:46","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/firefox-error-because-of-missing-breaks-easyfancybox-failure-prevents-bind\/"},"modified":"2018-03-16T02:07:09","modified_gmt":"2018-03-16T02:07:09","slug":"firefox-error-because-of-missing-breaks-easyfancybox-failure-prevents-bind","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/firefox-error-because-of-missing-breaks-easyfancybox-failure-prevents-bind\/","title":{"rendered":"FireFox error because of missing &#8216;;&#8217; breaks EasyFancyBox (failure prevents bind)"},"content":{"rendered":"<p>I applied a small fix to your code in order to fix this problem.<\/p>\n<p>There is your original on line 205-206 of <strong>&#8220;wp-content\/plugins\/easy-fancybox\/inc\/class-easyfancybox.php&#8221;<\/strong>:<\/p>\n<p><code>}<\/code><br \/>\n<code>var easy_fancybox_auto = function(){&#039;;<\/code><\/p>\n<p>As we can see, we close a <code>}<\/code> and  then we have a <code>var<\/code>. By adding a <code>;<\/code> after the <code>}<\/code>, it works for me:<\/p>\n<p><code>};<\/code><br \/>\n<code>var easy_fancybox_auto = function(){&#039;;<\/code><\/p>\n<p>I have FireFox version 59.0.<\/p>\n<p>Without the <code>;<\/code> I get an error in the console saying that it is missing. It&#8217;s good practice to end all your JavaScript lines with a <code>;<\/code> anyway.<\/p>\n<p>Because of that error, the jQuery <code>bind()<\/code> does not occur and my images don&#8217;t get fancied as expected.<\/p>\n","protected":false},"template":"","class_list":["post-10080678","topic","type-topic","status-publish","hentry","topic-tag-firefox","topic-tag-javascript","topic-tag-jquery"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/10080678","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":1,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/10080678\/revisions"}],"predecessor-version":[{"id":10080683,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/10080678\/revisions\/10080683"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=10080678"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}