             dtE = moment.tz @endField.val(), @inputDateFormat,
                     window.app.timezone
             # Model has non-inclusive end-date, but UI has inclusive end-date,
-            # which means a difference of one day.        
+            # which means a difference of one day.
             dtE.add 'day', 1
-            
+
             data.start = H.momentToDateString(dtS)
             data.end = H.momentToDateString(dtE)
 

        if not validModel
            @$('.alert').remove()
            @$('.control-group').removeClass('error')
            @handleError error for error in @model.validationError

    handleError: (error) =>
        switch error.field

            @reminders.push reminder
            reminder.on 'remove', (removedReminder) =>
                @reminders.splice @reminders.indexOf(removedReminder), 1

            reminder.render()
            @$('#reminder-container').append reminder.$el

