I try to extend jQuery, but when I call myTest this will return this.myTest.test() is undefined...
can someone tell me why...
(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);