... $.fn.annotateEdit = function(image, note) { if (note) { this.note = note; } else { var newNote = new Object(); newNote.id = \"new
You can bind the context of the parent object like so.
form.find(':radio').change(function(that) { var vacancy = $(this).attr('value'); that.note.vacancy = vacancy; }.bind(null,this));