Is it a good idea to write jQuery plugins just for the sake of neat code?
<p>For example if you write a plugin you could do this <code>$('#myDiv').doAction()</code> instead of <code>doAction($('#myDiv'))</code>. and you have to admit, the first one looks more intuitive. Are there any clear drawbacks of this like performance hits?</p>
