Target href of object clicked, not first object of collection.

I ran into an issue when targeting a group links, i.e. $('a.confirm') all links with the confirm class. In that case o from o.attr('href') is a collection of all the a.confirm links on the page and o.attr('href') returns the href of the first link in the collection. This results in first link in the collection being followed no matter what link is clicked.

My fix passes the event target in as one of the arguments, the href is then fetched from the link that triggered the event. It's worked great for me!