Accessing jQuery script outside function
<p>I activate a jQuery script like this:</p>

<pre><code>$('#an-id').drawbox();
</code></pre>

<p>This is the jQuery script (the important part):</p>

<pre><code>(function($)
{
$.fn.extend(
{
    drawbox: function()
    {

        // Default options
        var defaults = {
            caption:       'Caption',
            // Canvas properties
            lineWidth:     3,
            lineCap:       'round',
            lineJoin:      'round',
            miterLimit:    10,
            strokeStyle:   'green',
            fillStyle:     'none',
            shadowOffsetX: 0.0,
            shadowOffsetY: 0.0,
            shadowBlur:    0.0,
            shadowColor:   'none',
        }

        options = $.extend(defaults);

        return this.each(function()
        {

            //etc
</code></pre>

<p>The script runs fine, but I want to later get the 'options' value in a separate script. I'm guessing the options setting is set and stored in the function and can be retrieved later.</p>

<p>I've tried things like:</p>

<pre><code>$('#an-id').drawbox.options
</code></pre>

<p>...but can't seem to get it.</p>
