passing custom javascript object property as parameter in function to update
<p>Is it possible to pass a javascript object's property to a function to update the value of the property?  Right now I have an object like...</p>

<pre><code>element = { 
   border: { 
     width:0
   }
}
</code></pre>

<p>I'm trying to pass in an instance of this object to a function to update the width property but it's not working.  Something like...</p>

<pre><code>var instance = new element();
UpdateWidth(instance.border.width, 50);
</code></pre>

<p>I'm guessing inside the function it's just getting the value of instance.border.width and not the property itself.  Is this possible to do?  Thanks.</p>
