If I would have a simple function like this:
jQuery.fn.example = function(){
this.remove();
}
and call it with an empty selector:
What element would then
this be pointing to? Or is there a way to make a function able to be executed through both
$.example(), without a selector, and with
$(something).example()? If so, how can I find out which way the function has been executed so I can have different actions depending way of execution?