Overriding variable value inside the $.get()
<p>I am facing a quite Strange problem, I dont seem to be able to override variable <code>jSonData</code> from inside the success function of <code>$.get()</code></p>

<pre><code>$.fn.name = function(data, options) {
        var jSonData = data;
        var settings = $.extend({
                ....        
        }, options);

        if(typeof data !== 'object') {
            if(settings.debug) console.log('Getting configuration settings from: ', data);
            $.get(data, function(d) {
                jSonData = d; //I attempt to override the value here
            }, 'json');
        }
        console.log(jSonData); // Gives the same value as it was before
};
</code></pre>

<p><sub><strong>Note:</strong> The success event of the $.get() is triggered</sub></p>
