call function inside a nested jquery plugin
<p>There are many topics related to my question and i have been through most of them, but i haven't got it right. The closest post to my question is the following:</p>

<p><a href="http://stackoverflow.com/questions/1042072/how-to-call-functions-that-are-nested-inside-a-jquery-plugin">http://stackoverflow.com/questions/1042072/how-to-call-functions-that-are-nested-inside-a-jquery-plugin</a></p>

<p>Below is the jquery plugin i am using. On resize, the element sizes are recalculated. I am now trying to call the function resizeBind() from outside of the jquery plugin and it gives me error</p>

<p>I tried the following combinations to call the function   </p>

<p>$.fn.splitter().resizeBind()</p>

<p>$.fn.splitter.resizeBind()</p>

<p>Any ideas, where i am getting wrong?</p>

<pre><code>;(function($){  
$.fn.splitter = function(args){
//Other functions ......

$(window).bind("resize", function(){        
resizeBind();  
});

function resizeBind(){  
   var top = splitter.offset().top;
   var wh = $(window).height();
   var ww = $(window).width();
   var sh = 0; // scrollbar height   
if (ww &lt;0 &amp;&amp; !jQuery.browser.msie ) 
    sh = 17;   
    var footer = parseInt($("#footer").css("height")) || 26; 
    splitter.css("height", wh-top-footer-sh+"px");
 $("#tabsRight").css("height", splitter.height()-30+"px");      
 $(".contentTabs").css("height", splitter.height()-70+"px");    
 } 
return this.each(function() {
});
};
})(jQuery);
</code></pre>
