Assign function to variable and pass parameter
<p>I guess this is probably an easy problem, but I cannot figure it out myself (using the wrong search criteria?).</p>

<p>As the title says, I want to assign a function to a variable and pass a variable to that function like this:</p>

<pre><code>function doStuff(control) {
    var myObj = {
        "smooth": false,
        "mouseup": function(value) {
            jQuery(_getSelectorStringFromControlId(control.id)).blur();
        }
    };
}
</code></pre>

<p>Now I want the control.id to be replaced with its actual value before the function is assigned to the <em>mouseup</em> variable.</p>

<p>So when control.id = 'myOwnId' then <code>myObj.mouseup</code> should be:</p>

<pre><code>function(value) {
    jQuery(_getSelectorStringFromControlId('myOwnId')).blur();
}
</code></pre>

<p>How can this be accomplished?</p>
