I'm now starting to develop my own Javascript libraries. I already understand a bit how prototype works but I still do not understand how I can execute on the same request more than one method as jquery does ... EX:
//no jquery eu posso executar qualquer função em cascata assim
$('alguma coisa').metodo1().metodo2().metodo3();
//ou assim
$('alguma coisa').metodo1();
$('alguma coisa').metodo2();
$('alguma coisa').metodo3();
I would like to know how I can create a simple library so I can execute numerous methods at the same time as Jquery does ...