... $.fn.annotateEdit = function(image, note) { if (note) { this.note = note; } else { var newNote = new Object(); newNote.id = \"new
Check this - http://api.jquery.com/bind/ and "Passing event data" You can do something like this :
form.find(':radio').bind("change", { context : this }, function(event){ console.log(event.data.context); console.log(event.data.context.note); });