Fancybox 2 afterClose focus <p>I've just tried Fancybox 2 and have a problem! In Fancybox 1.3.4 I could trigger a function when fancybox closed, namely to add the focus to the current thumb element (e.g. in a gallery).</p> <p>It looked this way:</p> <pre><code>onClosed : function(){ currentArray[currentIndex].focus(); } </code></pre> <p>However, in Fancybox 2 they deprecated <code>onClosed</code> and there is an other parameter, <code>afterClose</code>, but I couldn't find the variables that store the current thumb element.</p> <p>Please, help!</p>