[jQuery] How to compare an object with different instances using jquery
var foo = new Object();
var v1 = new foo();
var v2 = new foo();
//attaching click to v1
v1.click($(this.anchor1));
//attaching click to v2
v2.click($(this.anchor1));
v1 is not equal to v2
I would like to differentiate the object instances when a click event
handler is triggered ...
I know java has equals() and hashcode() to compare object instances.
How to accomplish this in jquery