         max: new Date(maxDate).valueOf()
         slide: (event, ui) ->
           layer.setFilter (f) ->
-            return new Date(f.properties.date).valueOf() > ui.value+            return new Date(f.properties.date).valueOf() < ui.value
    @sliderTemplate = _.template $("#eqTimeSlider").html()

  render: () ->
    @$el.prepend @sliderTemplate
    maxDate = @options.maxDate
    minDate = @options.minDate


  setActive: (e) ->
    @model.set "active", false



