Call an external function from inside function in jQuery
<p>I try to extend jQuery, but when I call myTest this will return this.myTest.test() is undefined...</p>

<p>can someone tell me why...</p>

<pre><code>(function($) {
    $.fn.myTest=function() {

        var x=function() {
            this.myTest.test();

            var b = function() {
                this.myTest.coba();
            }
        }

        x();

        return this.each(function(){
        });
    };

    $.fn.myTest.test = function(){
        alert('test'); 
    };

    $.fn.myTest.coba = function(){
        alert('coba'); 
    };

    $.fn.myTest.iseng = function(){
        alert('iseng'); 
    };
})(jQuery);
</code></pre>
