jQuery binding function on focus
<p>I'm writing a little plugin for jQuery and so far I've got this:</p>

<pre><code>(function($){

    $.fn.extend({

        someFunction: function() {
            return this.each(function() {
                var obj = $(this);
                obj.focus(someInternalFunction(obj));
            });
        }

    });

    function someInternalFunction(obj) {
    };

})(jQuery);
</code></pre>

<p>The problem is, when i attach someFunction to the object, the object gets focus and binding of someInternalFunction on focus event fails.</p>

<p>Then I tried to bind function to wrap the function call in the other function:</p>

<pre><code>obj.focus(function() {
    someInternalFunction($(this));
});
</code></pre>

<p>This code works, but it isn't pretty at all. Is it possible to bind function on focus without wrapping it in the other function?</p>
