[jQuery] Plugin development - how to access the current object from a "sub-method"?
Supposing I have this:
jQuery.fn.myPlugin = function(){
//....
};
jQuery.fn.myPlugin.myMethod = function(){
// ?
};
$('#test').myPlugin.myMethod();
How can I access the current object or element collection from inside
jQuery.fn.myPlugin.myMethod? Is it possible at all?
thanks,
- ricardo