(function($) {
$.fn.myFoo= function (o){
this.element = $(this)
options = jQuery.extend({
name: "defaultName",
size: 5,
global: true
}, o);
_min = function (){ //am i private method?
alert('dud');
}
max = function (){ //am i public method?
alert('max');
}
return this.o(); //o= 'max'
}
})(jQuery);
Question 1 = is there a way to call the max method/function above if i was to use this line
$('#id').myFoo('max');
Question 2 = i know that on jquery widgets an underscore "_" would mark the method as private. is this the same case on the $.fn ?
note that the line return this.o();
it is wrong its just there to demonstrate what i would like to accomplish