How do I define a function on an object with parameters?
<p>I want a function to accept parameters.  This works fine without parameters:</p>

<pre><code>myObject: {
    var1: 25,
    fun1: function()
    {
        return 1
    }
}
</code></pre>

<p>However, this doesn't.</p>

<pre><code>myObject: {
    var1: 25,
    fun1: function(par)
    {
        return par
    }
}
</code></pre>
