     '../../button'
     'tpl!templates/controls/date-range-input.html'
 ], (c, controls, button, templates...) ->
-    
+
     templates = c._.object ['date'], templates
 
-    class DateControl extends controls.Control 
+    class DateControl extends controls.Control
         template: templates.date
 
         events: ->

                operator = if @isBetweenSelected() then 'lte' else 'gte'
            else
                operator = if @isBetweenSelected() then 'range' else '-range'
          
            return operator

        getValue: ->

                value = to_date
            # If both fields are emtpy, return null to invalidate this range
            else
                value = null

            return value

        setOperator: (operator) ->
