How to access application objects from jquery plugin
<p>In our application we are caching some frequently used data. Recently we have developed a jquery plugin for our web app. Some of the plugin methods needs to access application cache. 
I tried to access the cache, and result is undefined. </p>

<p>For example: </p>

<p><strong>Application Class</strong></p>

<pre><code>Application(){
cachedObjects = {};
}
</code></pre>

<hr>

<pre><code>&lt;body&gt;
$(function(){
Application();
});
</code></pre>

<p><strong>Plugin:</strong></p>

<pre><code>(function( $ ){

var methods = {
initialize : function( options ) { },
getDataFromCache : function() { 
var data = Application.cachedObjects.someObject;// Here, data is undefined.
 }
};

 $.fn.menuPlugin = function( method ) {
 if ( methods[method] ) {
  return methods[ method ].apply( this, Array.prototype.slice.call( arguments, 1 ));
 } else if ( typeof method === 'object' || ! method ) {
  return methods.initialize.apply( this, arguments );
} else {
}    

};
})( jQuery );
</code></pre>

<p>How can i access those application objects?</p>

<p>Any suggestions would be appreciative.</p>

<p>Thanks!</p>
