Does passing the entire object as argument rather than just a property of it, in javascript, effect performance? For example:
<input type="button" onclick="getDetails(this)"/>
vs
<input type="button" onclick="getDetails(this.sourceIndex)"/>
even if I pass the sourceIndex property of 'this' object, I would retrieve the entire element from it in my function - getDetails(). I need advise on what exactly will be the effect in this particular case.