Conditionally passing options to a jquery function
<pre><code>$.fn.demo = function(options) {
    var defaults = {
        opacity: 50,
        width: '250px',
        height: '100px',
        color: 'red'
    }
  }
</code></pre>

<p><strong>Is there any way to conditionally pass options to a function, like such:</strong></p>

<pre><code>$().demo({
opacity: 60,
if (div.length){
    width: '350px'
}
height: '100px'
});
</code></pre>

<p>Just curious what would be the best way to handle a situation where you may want to pass different options depending on circumstances. Thanks!</p>
