Hi,
Based on my understanding the SelectedReminder attribute is defined in this same script you mentioned when entering the else clause at the end of the script:
else {
data.SelectedReminder = data.Reminders[0];
this._setOption('selectedReminderId', data.SelectedReminder.ReminderId);
}
In order to follow this, I believe you could debug this script by using a tool such as Windows Internet Explorer® F12 developer tools , Fiddler , or FireBug in which case you may find that this attribute is undefined until the aforementioned point.
Regards,
Agustin Adami
http://blogs.southworks.net/aadami