Setting a variable in a jquery-function
<p>ok, I know, the title may sound a little weird...</p>

<p>Following problem:</p>

<p>I have a jquery function like this:</p>

<pre><code>(function($){
    $.fn.myFunction = function(opts){
        var settings = {
           params: {}
        };
    }

    if ( options ) { 
      $.extend( settings, options );
    }

}
</code></pre>

<p>Now, the function is applied to an element like this:</p>

<pre><code>$('#elem').myFunction({'data':'test','data2': 'test2'});
</code></pre>

<p>How do I access the settings-property from outside of the function?</p>

<p>Means, after the function is initialized, I want to change some of the settings - I can't figure out how, though.</p>

<p>Any ideas?</p>

<p>(hope it's not too confusing what I wrote :)</p>
