anchor.diff:    gmap.setZoom(6)
   
     if renderOnly?
  -    do searchRelics
  +    searchRelics()
       return
   
     $search = $('#new_search')
     $search.submit(searchRelics)
   
     $(document).on 'params:changed', ->
  -    ROUTE = POLYGON = SEARCH_PARAMS = null
  -    do searchRelics
  -    do saveWidget
  -
  -  $('body').on 'change', '#search_radius, #waypoints .waypoint, input[name="search[route_type]"]', ->
  +    reset()
  +    searchRelics()
  +    saveWidget()
  +
  +  $('body').on 'change', '#search_radius, input[name="search[route_type]"]', ->
       $(document).trigger 'params:changed'
   
     toggleRemoveButtons = ->
  
positive.code:   placesAutocomplete $input
    $input
  
  placesAutocomplete = (input) ->
    options = componentRestrictions: country: 'pl'
    autocomplete = new google.maps.places.Autocomplete input[0], options
  
    google.maps.event.addListener autocomplete, 'place_changed', ->
      $(document).trigger 'params:changed'
  
  jQuery ->
  
  
negative.code:       event: "on_params_changed", params: storeParams()
      ), "*")
  
  reset = ->
    ROUTE = POLYGON = SEARCH_PARAMS = null
    clearMarkers()
  
  searchRelics = ->
    debouncedSearchRelics()
    false
  
  debouncedSearchRelics = jQuery.debounce ->
    search_params = getSearchParams()
  
    if hasValidWaypoints search_params.waypoints
  