Why does this Jquery function appear to do nothing
<pre><code>ApplyClickableLinkToClass = function(selectedElements) {
// Go through each of the passed in selections and try to apply a link to them
$.each(selectedElements, function() {
    var linkElement = $("a:first:not(.do-not-apply-clickable-link)", $(this));
    var link = linkElement.attr("href");
    if (!IsNullEmptyOrUndefined(link)) {
        $(this).click(function(firstLink) {
            var divToLink = firstLink;
            return function() {
                $(divToLink).unbind('click');
                if (divToLink.attr("target") != "_blank") {
                    window.location = link;
                    return false;
                }
            };
        }(linkElement));
    }
});
</code></pre>

<p>}</p>

<p>I would think it would open target in new window and remove click event but does nothing when called, any ideas ?</p>

<p>Called as follows </p>

<pre><code>    var clickable = function () {
    ApplyClickableLinkToClass($j(".rc_blueBtn, .rc_whiteBtn:not(.More)"));
    };
    setTimeout(clickable, 2000);
</code></pre>
